Suse Linux box not resolving DNS

I have a suse linux box that doesn't seem to want to resolve DNS, either from the console (ping, etc) or from the services running on it.

BIND is running locally on the box and /etc/resolv.conf is set to 127.0.0.1 for the DNS server. BIND is setup with proper forwarders and other boxes that use this server for DNS resolve just fine.  I can also run nslookup and resolve hostnames just fine, it just doesn't work for other things.

/etc/nsswitch.conf has:
services: files dns
hosts: files dns

Appreciate any ideas. Thanks!
LVL 5
valheru_mAsked:
Who is Participating?
 
pilson66Connect With a Mentor Commented:
Your DNS service is listening on localhost ?
see "netstat -nltup"
you must see like:
 
udp        0      0 127.0.0.1:53            0.0.0.0:*                           923/named

Open in new window

0
 
pilson66Commented:
Also, you need the next code in options.conf
Example:
 
/*
         * For localhost configuration, uncomment the listen-on directive below.
        */
              listen-on { 127.0.0.1; };

Open in new window

0
 
valheru_mAuthor Commented:
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      -    
udp        0      0 127.0.0.1:53            0.0.0.0:*                           -    

Both of those appear in the output of your command.
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
pilson66Commented:
in options.conf
 
allow-query { localhost; localnets; };

Open in new window

0
 
pilson66Commented:
In my config:

 
options {
        version "unknown";
        directory "/zone";
        pid-file "";
        dump-file "/var/run/named_dump.db";
        statistics-file "/var/run/named.stats";

              listen-on { 127.0.0.1; 10.0.0.92;};
              forwarders { 8.8.8.8; 213.160.128.3; 80.91.160.2; 83.218.227.100; };
              recursion no;
              allow-query { localhost; localnets; };
};

Open in new window

0
 
valheru_mAuthor Commented:
Bah, I need to get more sleep.  I just changed the /etc/resolv.conf to the local IP addy instead of 127.0.0.1 and it's working fine now.  I'll give ya the points since your suggestion put my train of thought on the right tracks.  

thanks for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.