[Mailman-Users] DNS Rdatatype?
Larry Rosenman
ler at lerctr.org
Tue Jun 30 05:29:27 CEST 2015
On 2015-06-29 22:25, Mark Sapiro wrote:
> On 06/29/2015 08:15 PM, Larry Rosenman wrote:
>
>> Those lines ARE there:
>> try:
>> import dns.resolver
>> from dns.exception import DNSException
>> dns_resolver = True
>> except ImportError:
>> dns_resolver = False
>>
>> init.d script:
> ...
>> MAILMANHOME=/usr/lib/mailman
>> MAILMANCTL=$MAILMANHOME/bin/mailmanctl
>
>
> What is the shebang line at the top of /usr/lib/mailman/bin/mailmanctl?
> Is it the python command you expect?
>
> What if you do
>
> sudo -u mailman python
>
> and then do
>
> import dns.resolver
> dns.rdatatype.TXT
root at gothamweb02 ~]# head /usr/lib/mailman/bin/mailmanctl
#! /usr/bin/python
# Copyright (C) 2001-2013 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
[root at gothamweb02 ~]#
[root at gothamweb02 ~]# sudo -u mailman python
Python 2.4.3 (#1, Jan 9 2013, 06:47:03)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dns.resolver
>>> dns.rdatatype.TXT
16
>>>
[root at gothamweb02 ~]#
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: ler at lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688
More information about the Mailman-Users
mailing list