I installed BIND on Ubuntu and nslookup is successful, pinging my hostname is successful, but pinging an external site (i.e. www.google.com) does not work.

I receive the error message: ping: unknown host www.website.com

Any ideas why I can't ping an external network? Here are my settings:

ifconfig (snippet)

     inet addr:    Bcast:    Mask:

    inet addr:    Mask:

/etc/hosts    testing    testing.local    localhost    testing




auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static



search       testing.local 
domain       testing.local


forwarders {;;;



zone "testing.local"
    type master;
    file "/etc/bind/zones/testing.local.db";


zone "0.0.192.in-addr.arpa"
   type master;
   file "rev.0.0.192.in-addr.arpa";

/etc/bind/zones/testing.local.db #FORWARD LOOKUP

$ORIGIN testing.local.


@    SOA    testing.local.    admin.testing.local. (12 4h 1h 1w 1h)

@                 IN     NS     testing.local.

testing.local.    IN    A

www               IN    A

/etc/bind/zones/rev.0.0.10.in-addr.arpa #REVERSE LOOKUP

$ORIGIN    testing.local.


@    SOA    testing.local.    admin.testing.local. (12 4h 1h 1w 1h)

@          IN     NS     testing.local.

1          IN     PTR    testing.local.

I'm not sure if it matters but I have not yet installed/configured DHCP yet. I also uninstalled my network-manager since it was interfering with my settings. I know I put a lot of information, basically everything I edited but I am a newbie and I've spent all day trying to figure it out. I thank you all in advance for your help.


'unknown host' means that you are not able to determine the IP address associated with this particular domain name. The two possibilities are:

  1. You cannot find the DNS server
  2. DNS server doesn't know of www.website.com

Try doing dig www.website.com, that will give you an idea of what it is that you are trying to ping. Most likely you are looking at the lack of the DNS server in your settings.

  • I tried dig and I get: <<>> DiG 9.8.1-P1 <<>> www.google.com ;; global options: +cmd ;; connection timed out; no servers could be reached. I also checked the syslog and I notice that I have a "[5306] error (network unreachable) resolving" - solution I've found is to change the /etc/sysconfig/named file with OPTIONS="-4". How would I do that on Ubuntu 12.04? (there is no sysconfig/named file) – fragilewindows Dec 7 '13 at 7:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.