LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS and bind (https://www.linuxquestions.org/questions/linux-networking-3/dns-and-bind-334057/)

kevinm2 06-15-2005 08:42 PM

DNS and bind
 
Any one knows of a simple to follow guide to setup a DNS and BIND behind a firewall on a Redhat 7.2?

macemoneta 06-15-2005 10:18 PM

If you Google for DNS and BIND, you will find many howto documents. The only difference when running a firewall is that you have to open port 53 on the firewall.

If you're using IPTABLES, for example:

Code:

#
# DNS - allow local queries on subnet 123.45.67.0
#
-A INPUT -p tcp -m tcp --dport 53                        --syn -j ACCEPT
-A INPUT -p udp -m udp --dport 53                              -j ACCEPT
-A INPUT -p udp -m udp -s 123.45.67.0/24 --sport 53 -d 0/0      -j ACCEPT
-A INPUT -p tcp -m tcp -s 123.45.67.0/24 --sport 53 -d 0/0 --syn -j ACCEPT



All times are GMT -5. The time now is 03:22 PM.