[NTLUG:Discuss] Postfix

David Stanaway david at stanaway.net
Wed Aug 8 23:00:25 CDT 2007


ditto except; the host command only does dns lookup. Standard name
resolver users nsswitch

david at yezhov:~$ ldd `which ping`
...
        libresolv.so.2 => /lib/tls/libresolv.so.2 (0xb7f69000)
...


David Stanaway wrote:
> Hosts uses your nsswitch conf
> 
> 
> david at sprocket:~$ grep hosts /etc/nsswitch.conf
> hosts:          files dns
> 
> 
> files looks in /etc/hosts
> 
> dns looks in /etc/resolv.conf
> 
> I believe it will try and resolve the name as is, then it will try
> appending the domain from resolv.conf and do a dns lookup.
> 
> If you swapped dns and files around - not sure what would happen if dns
> gives an NX host (Rather than just failing to resolve due to DNS down).
> If you have it that way, then lat is kinda non-standard. It should be
> file dns
> 
> make sure you /etc/hosts is formated correctly too
> 
> 
> 
> Fred wrote:
>> On Wed, 08 Aug 2007 Stuart Johnston <saj at thecommune.net> wrote:
>>> The host command only does DNS lookups.  Try 'ping main.
>>>
>>> ------------------------------
>> OK, not sure why, though. All my networking works just fine, just 
>> didn't understand the "host" command or what it was for.
>>
>> #ping main
>> PING main.local (192.168.1.150) 56(84) bytes of data.
>> 64 bytes from main.local (192.168.1.150): icmp_seq=1 ttl=64 time=0.061 ms
>>
>> Fred
>>
>>
>>
>>
>>
>>        
>> ____________________________________________________________________________________
>> Yahoo! oneSearch: Finally, mobile search 
>> that gives answers, not web links. 
>> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
>>
>> _______________________________________________
>> http://www.ntlug.org/mailman/listinfo/discuss
>>
> 
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
> 




More information about the Discuss mailing list