how to open port 53 for bind

how to open port 53 for bind on debian server?

[xxx.xxx.xxx.xxx] 53 (domain) : Connection refused


Solution 1:

"Connection refused" means that BIND isn't actually running on that port, for that particular IP address.

It's a common default configuration for BIND on desktop installs to only listen on the "loopback" IP address.

In fact your netstat -an output confirms that - I can see it listening on 127.0.0.1:53 but not on 0.0.0.0:53

Have a look at /etc/named.conf and check for the listen-on directive. Mine says:

listen-on port 53 { any; };