When I ping "" after forwarding my DNS Server, nothing happens?

  • Posted September 8, 2014

OS Info: LAMP on Ubuntu 14.04 Tutorial Followed:

When I ping using “ping -c 1” I get no results. My apache website is live at When I “dig” on my regular computer, the right information shows up.

It seems when I only dig my domain while SSH’d onto my server all outgoing commands are blocked. If I need to provide any more information, just let me know. Thanks!

Below is my “tail -f /var/log/syslog” log:

Sep  8 00:08:20 simplyjordan ntpdate[614]: Can't find host Name or service not known (-2)
Sep  8 00:08:20 simplyjordan ntpdate[614]: no servers can be used, exiting
Sep  8 00:08:50 simplyjordan ntpdate[1416]: Can't find host Name or service not known (-2)
Sep  8 00:08:50 simplyjordan ntpdate[1416]: no servers can be used, exiting
Sep  8 00:08:56 simplyjordan kernel: [   60.531994] random: nonblocking pool is initialized
Sep  8 00:09:01 simplyjordan CRON[1423]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))

Below is my “/etc/network/interfaces” file (IPADDR = my servers actual IP address):

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address IPADDR

Below is my “/etc/bin/named.conf.options” file info (IPADDR = my servers actual IP address):

acl goodclients {

options {
        directory "/var/cache/bind";

        recursion yes;
        allow-query { goodclients; };

        forwarders {

        forward only;

        dnssec-enable yes;
        dnssec-validation yes;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };

I didn’t have a folder or file named “/etc/sysconfig/network-scripts/ifcfg-eth0”, so I just created one. Here is what it says:


Yeah, that’s just a typo while writing my question.

Probably just a typo when you asked the question, but /etc/bin/named.conf.options should be /etc/bind/named.conf.options

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Jordan

I could read the tutorial you followed quickly, and your configuration files and something appeared to me concerning ACLs and resolved.conf file.

In the tutorial, the author used Access Control List (ACL) to manage client access to the DNS server, and the DNS server itself will forward request to a list of extra DNS servers to have a reply, and deliver it to you.

So, in your configuration file, you used $IP_ADDR in your ACL (added to localhost and localnet), you should only be able to request your DNS server from those IPs only. When connecting via SSH, the requests you do becomes local.

On a local UNIX system, the first file to be read to solve DNS queries is the /etc/hosts file, or the /etc/resolv.conf file, accordingly to the /etc/nsswitch.conf file that give order of the files to use.

In your case, I believe the IP that was added in your resolv.conf file (as said in the tutorial you followed) is not reachable by your VM. This is the reason why your ntp service running locally isn’t able to resolve the address of any time server.

A simple traceroute or ping should confirm this to you.

If I am not wrong, and to solve your case, I would replace the IP by $IP_ADDR in your /etc/resolv.conf, and the magic should work ;) Next, if you want to use your DNS server from outside your droplet, don’t forget to add your WAN IP in your ACL !

Hope this could help. Feel free to tell me if it could solve your trouble,


– rustx