DNS
From Christoph's Personal Wiki
Caching-only DNS servers
This section will only cover using BIND to configure a caching-only DNS server.
$ yum install -y bind $ cat /etc/named.conf listen-on port 53 { any; }; listen-on-v6 port 53 { any; }; allow-query { 192.168.0.0/24; }; forwarders { 192.168.0.254; }; dnssec-validation no; # if on a private network $ service named start $ chkconfig named on # make it persistent
- Update your
`iptables`
rules:
-A INPUT -p tcp -m state --state NEW -m tcp --dport 53 -j ACCEPT -A INPUT -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT
$ ls /var/named/ $ ls /usr/share/doc/bind-9.8.2/arm/