01-30-2007
448,
1
Join Date: Sep 2003
Last Activity: 5 June 2008, 4:15 AM EDT
Posts: 448
Thanks Given: 0
Thanked 1 Time in 1 Post
It will ask the resolver which relies on how your name resolution is set:
host file lookup only (/etc/hosts) and/or querying (socket tcp/udp on port 53) a dns server (/etc/resolv.conf) the order of search is govern by /etc/nsswitch.conf
O-o-o-ps sorry Perderabo, I thought I saw gethostbyname() ...
Last edited by andryk; 01-30-2007 at 08:02 AM..