Question

How do I make my DNS server resolve external addresses?

Posted October 2, 2013 8k views
Hi guys, I would just like to know what I need to do to make my DNS server resolve external websites, I connect directly to my DNS server from my PC and my DNS can resolve all of the records hosted in it but if, for example I try to go to google.com then it won't resolve. I'm using BIND on an Ubuntu 12.04 x64 Droplet. Thanks in advance, Francis

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.

×
7 answers
What's the output of cat /etc/resolv.conf?
search ow (This is because I host my own tld off of it)
nameserver 162.243.28.202
nameserver 8.8.8.8
nameserver 8.8.4.4

Thanks for replying!
It's working fine for me:

$ dig google.com @162.243.28.202 


[...]

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 84 IN A 62.0.54.109
google.com. 84 IN A 62.0.54.88
google.com. 84 IN A 62.0.54.114
google.com. 84 IN A 62.0.54.103
[...]
@francis.mcnamee,

Have you seen this guide: How to Install the BIND DNS Server on CentOS 6?
by Travis
This article will show you how to setup and configure the BIND DNS Server on CentOS 6.
You have to allow recursion in named.conf
acl internals { 127.0.0.0/8; 192.168.1.0/24;};

options {
...
...
recursion yes;
allow-recursion { ::1 ; internals; };
}
Forgot semi-colon after } on last line.
Submit an Answer