[asterisk-users] asterisk fails when DNS or internet fails

Steve Edwards asterisk.org at sedwards.com
Tue May 31 17:15:23 CDT 2011


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       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list