OpenVZ Forum


Home » Mailing lists » Users » Dns resolution failure..
Re: Dns resolution failure.. [message #3746 is a reply to message #3742] Wed, 14 June 2006 09:16 Go to previous messageGo to previous message
rkagan is currently offline  rkagan
Messages: 11
Registered: May 2006
Location: Moscow
Junior Member
On Tue, Jun 13, 2006 at 11:14:05AM -0700, Aaron Stewart wrote:
> What's bugging me (and I can't wrap my brain around it) is that we can ping the outside world, wget to IP addresses, and ssh into external hosts. The only thing that seems to be
> failing is DNS at the application level.. Again, nslookup and host both work without issue.

Check that you have 'dns' among the services for 'hosts' map in
/etc/nsswitch.conf, e.g.

# grep hosts /etc/nsswitch.conf
hosts: files dns

The point is that 'nslookup' and 'host' do DNS lookups (only) while the
applications use (through standard libc functions) whatever is
configured for NSS (Name Service Switch).

Roman.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reasonable expectations
Next Topic: Network configuration
Goto Forum:
  


Current Time: Wed Aug 21 16:19:35 GMT 2024

Total time taken to generate the page: 0.03101 seconds