OpenVZ Forum


Home » General » Support » iptables seems to prevent dns nameserver resolution
iptables seems to prevent dns nameserver resolution [message #38588] Wed, 06 January 2010 00:47 Go to next message
bcdsystems is currently offline  bcdsystems
Messages: 8
Registered: May 2009
Junior Member
Hi,
I have just installed OpenVZ and setup a test container successfully.

The problem is if I ping an IP address from a container, it works but if instead I ping DOMAIN I get "ping: unknown host DOMAIN".

However, if on the Host I stop iptables everything works.

Can anyone tell me what I need to do in iptables on the host to get the DNS name resolution to work?

Many thanks for you help.

Brendan
Re: iptables seems to prevent dns nameserver resolution [message #38589 is a reply to message #38588] Wed, 06 January 2010 01:06 Go to previous message
bcdsystems is currently offline  bcdsystems
Messages: 8
Registered: May 2009
Junior Member
Hi,
Someone has helped me fix this via

iptables -I RH-Firewall-1-INPUT -p udp -m udp --dport 53 -j ACCEPT

and then

service iptables save

Thanks,
Previous Topic: OpenVZ & OCFS2
Next Topic: Maximum amount of RAM allocated to a container
Goto Forum:
  


Current Time: Sun Jul 06 10:48:21 GMT 2025

Total time taken to generate the page: 0.02593 seconds