Question
When I ping "google.com" after forwarding my DNS Server, nothing happens?
OS Info: LAMP on Ubuntu 14.04
Tutorial Followed: https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-caching-or-forwarding-dns-server-on-ubuntu-14-04
When I ping google.com using “ping -c 1 google.com” I get no results. My apache website is live at simplyjordan.net. When I “dig simplyjordan.net” 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 ntp.ubuntu.com: 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 ntp.ubuntu.com: 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
netmask 255.255.255.0
gateway 162.243.118.1
dns-nameservers 192.0.2.1
Below is my “/etc/bin/named.conf.options” file info (IPADDR = my servers actual IP address):
acl goodclients {
IPADDR;
localhost;
localnets;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-query { goodclients; };
forwarders {
8.8.8.8;
8.8.4.4;
};
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:
DNS1=192.0.2.1
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.
×
Probably just a typo when you asked the question, but
/etc/bin/named.conf.options
should be/etc/bind/named.conf.options
Yeah, that’s just a typo while writing my question.