On Tue, 31 May 2011, Hans Witvliet wrote:
Sure, if you add a line in /etc/hosts, that works for most applications,
as not all commands follow /etc/resolv.conf....
i just tried, adding a line to /etc/hosts.
ping hostname works, but host hostname fails, just as host ip-address.
So even when you only put ip-addresses (brrr) into your config files,
the reversed-lookup will still spoil the party.
It depends on the settings in /etc/nsswitch.conf and the resolver library
the application uses.
Compare ping and ssh referencing a host that is only in /etc/hosts.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users