
apache at bago
Aug 25, 2008, 8:28 AM
Post #9 of 9
(2537 views)
Permalink
|
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 ------------------------------------------- Sender Policy Framework: http://www.openspf.org Modify Your Subscription: http://www.listbox.com/member/ Archives: https://www.listbox.com/member/archive/1007/=now RSS Feed: https://www.listbox.com/member/archive/rss/1007/ Powered by Listbox: http://www.listbox.com
|