BIND not responding to external calls

Hi.

I recently started using Virtualmin in my VPS (a new one) with centos 6.

Unfortunately I've been unable to get BIND to work properly.

If I dig my server I get:

; <<>> DiG 9.9.5-3-Ubuntu <<>> @myserver ; (1 server found) ;; global options: +cmd ;; connection timed out; no servers could be reached

But if I connect to it by ssh and do dig @localhost I get:

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> @localhost ; (2 servers found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4628 ;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION: ;. IN NS

;; ANSWER SECTION: . 513473 IN NS g.root-servers.net. . 513473 IN NS i.root-servers.net. . 513473 IN NS m.root-servers.net. . 513473 IN NS d.root-servers.net. . 513473 IN NS e.root-servers.net. . 513473 IN NS b.root-servers.net. . 513473 IN NS k.root-servers.net. . 513473 IN NS j.root-servers.net. . 513473 IN NS c.root-servers.net. . 513473 IN NS f.root-servers.net. . 513473 IN NS h.root-servers.net. . 513473 IN NS l.root-servers.net. . 513473 IN NS a.root-servers.net.

;; Query time: 0 msec ;; SERVER: ::1#53(::1) ;; WHEN: Mon May 12 17:19:29 2014 ;; MSG SIZE rcvd: 228

I also checked my firewall and I'm accepting calls on upd port 53: " Accept If protocol is UDP and destination port is 53 "

Can you please help me find the error?

Thank you

Status: 
Active

Comments

Howdy -- it sounds like either a firewall issue, or that BIND isn't listening for or accepting external requests.

It sounds like you looked into the firewall issue, so next you'd want to take a look in /etc/named.conf, and make sure there isn't a "listen-on" directive that's limiting it to just localhost, or that there isn't an "allow-query" preventing access.

Regarding firewalls, you may also want to verify that your ISP doesn't prevent traffic on port 53.

The Support area here is for folks using Virtualmin Pro though -- if you had any followup questions, since you're using Virtualmin GPL, you'd want to open up a new Forum post to discuss those. We monitor the Forums, along with lots of wonderful folks in the community!

When creating a new Forum post, if you're still seeing problems with accessing your DNS server externally, include the contents of your /etc/named.conf file, as well as the output of these two commands:

iptables -L -n
netstat -an | grep :53

I'll open a discussion on the forum.

Thank you for your time.