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 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!
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  *                           923/named

Open in new window

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

Open in new window

valheru_mAuthor Commented:
tcp        0      0  *               LISTEN      -    
udp        0      0  *                           -    

Both of those appear in the output of your command.
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!

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

Open in new window

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 {;;};
              forwarders {;;;; };
              recursion no;
              allow-query { localhost; localnets; };

Open in new window

valheru_mAuthor Commented:
Bah, I need to get more sleep.  I just changed the /etc/resolv.conf to the local IP addy instead of 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!
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.