On Wed, Jul 30, 2008 at 01:15:36PM -0700, Ying Xu wrote: > What if ping works and nslookup doesnt work? The /etc/hosts doesnt > have the hostname entry. nsswitch.conf has both files and dns listed. > I dont know where ping gets the hostname. When I query the hostname, > on some servers, they could resolve the names, but on other servers, > they couldnt. resolv.conf are the same on the servers.
First, try using dig(1M) instead. Second, make sure you're using the same options as the resolver (specifically, make sure you enable 'search' and recursion). Nico -- _______________________________________________ networking-discuss mailing list [email protected]
