Re: Live-DNS testing infrastructure

Stefano Bagnara <[email protected]> Mon, 25 Aug 2008 17:28:18 +0200
Newsgroups gmane.mail.spam.spf.devel
Message-ID <[email protected]>
Stuart D. Gathman ha scritto:
> On Mon, 25 Aug 2008, Stefano Bagnara wrote:
> 
>> So, if anyone is interested I expect them to add a new option (let's say
>> -s/--server ip[:port]) to their command line.
> 
> I will be adding this to pyspf.  I'll post here when I get to it.  It
> should be trivial, since pydns already has the options.  However, pydns
> reads /etc/resolv.conf to load a list of nameservers.  Do we really
> need a command line option?  Or can pydns support a ':port' syntax for
> the nameservers in /etc/resolv.conf ?  A command line option would then
> conflict with /etc/resolv.conf, and I guess would take precedence, or 
> else the command line option would insert a nameserver before any 
> /etc/resolv.conf nameservers.

This is up to you. I'd say that a command line parameter should use the 
server I tell it to use and ignore /etc/resolv.conf at all.

It's the same for dig, host, nslookup commands. If you don't specify a 
server they use the OS default, otherwise they query the server you 
specified.

Stefano