francis1
By:
francis1

How do I make my DNS server resolve external addresses?

October 2, 2013 4.7k 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
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.
Have another answer? Share your knowledge.