DNS Server: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with "[http://www.oreilly.com/catalog/linuxckbk/ <i>The Linux Cookbook</i> (O'Reilly) by Carla Schroder] has very good recipes for setting up a DNS server. Caching, public and private servers for both bind and djbdns are covered. You can also read it online [http://safari.oreilly.com/0596006403/linuxckbk-PREFACE-2#X2ludGVybmFsX1RvYz94bWxpZD0wNTk2MDA2NDAzL2xpbnV4Y2tiay1DSFAtMjQ= here]. ==== bind ==== A very nice tutorial for bind can be found [http://www.troubleshooters.com/li...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
[http://www.oreilly.com/catalog/linuxckbk/ <i>The Linux Cookbook</i> (O'Reilly) by Carla Schroder] has very good recipes for setting up a DNS server. Caching, public and private servers for both bind and djbdns are covered. You can also read it online [http://safari.oreilly.com/0596006403/linuxckbk-PREFACE-2#X2ludGVybmFsX1RvYz94bWxpZD0wNTk2MDA2NDAzL2xpbnV4Y2tiay1DSFAtMjQ= here].
[[Configuration#DNS_Server|Back]]
 
=Bind=
==== bind ====
Tutorial [https://reintech.io/blog/installing-configuring-caching-dns-server-rocky-linux-9 here].
A very nice tutorial for bind can be found [http://www.troubleshooters.com/linux/dns.htm here].
  # dnf -y install bind bind-utils
 
# cp /etc/resolv.conf /etc/resolv.conf.bak
To install a bind caching name server, you can follow these steps.
# sed -i 's/nameserver.*/nameserver 127.0.0.1/g' /etc/resolv.conf
Note: This was done on CentOS 5.4 x86_64, so YMMV.
# systemctl enable --now named
  Do this all as root.
=djbdns =
 
Tutorial [http://www.troubleshooters.com/linux/djbdns/index.htm here].
# Install caching name-server
#* # yum -y install bind caching-nameserver
# Set named up to run after reboot. And start named
#* # chkconfig named on
#* # service named start
# Edit /etc/resolv.conf and add the following above other entries
#* nameserver 127.0.0.1
# Test
#* # dig qmailtoaster.com | grep "^;; SERVER"
#* If you get ";; SERVER: 127.0.0.1#53(127.0.0.1)" then you're good to go.
 
==== djbdns ====
A very nice tutorial for djbdns can be found [http://www.troubleshooters.com/linux/djbdns/index.htm here].

Latest revision as of 13:15, 19 October 2024

Back

Bind

Tutorial here.

# dnf -y install bind bind-utils
# cp /etc/resolv.conf /etc/resolv.conf.bak
# sed -i 's/nameserver.*/nameserver 127.0.0.1/g' /etc/resolv.conf
# systemctl enable --now named

djbdns

Tutorial here.