VPS firewall preventing DNS bind

gabrielpasv

Member
Aug 2, 2011
18
0
51
When I disable my firewall (service iptables stop) I am able to see that my VPS IP address and nameservers (ns1 and ns2) has been populate in the world.

When I turn on my firewall (service iptables start) the IP address and nameservers (ns1 and ns2) does not propagate.

So it's clearly a firewall issue. I tried to open port 53 but still same think.

I don't want having my VPS without security.

I need to know how to best proceed to allow this dns bind traffic through the firewall.


Thank You Very much for your help!
 

ModServ

Well-Known Member
Oct 17, 2006
337
5
168
Egypt
cPanel Access Level
Root Administrator
If you have issues in IPTables assuming you are on OpenVZ then this must be fixed at the main server not the VM.

And If you have this issue while using Xen, I suggest you to use CSF instead.

You could also use CSF in OpenVZ but it needs some configuration in the main server.

Could you please also provide the ouput of this command with IPTables on?

PHP:
lsof | grep -iw "named"
and these commands as well:

PHP:
telnet localhost 53
PHP:
service named status