From 5211cef1c0005c6885ca86682fb4eb9ce857f6f9 Mon Sep 17 00:00:00 2001 From: ubergeek Date: Fri, 23 Nov 2018 20:33:00 -0500 Subject: [PATCH] Update page 'Setting up a .tilde DNS server' --- Setting-up-a-.tilde-DNS-server.md | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Setting-up-a-.tilde-DNS-server.md diff --git a/Setting-up-a-.tilde-DNS-server.md b/Setting-up-a-.tilde-DNS-server.md new file mode 100644 index 0000000..2697089 --- /dev/null +++ b/Setting-up-a-.tilde-DNS-server.md @@ -0,0 +1,54 @@ +Thankfully, most of the work has been figured out already. So, until we get an ansible playbook written, you can follow these steps: + +# Ubuntu +Execute the following: +``` +sudo apt -y install bind9 git +cd /var +sudo git clone https://tildegit.org/ubergeek/.tilde.git +sudo mv .tilde tilde +sudo cp db.* /etc/bind/ +sudo cp named.conf.* /etc/bind/ +sudo systemctl restart bind9 +sudo journalctl -xe +``` + +The last command should tell you if bind9 reloaded successfully, and if it did not. If it didn't, you'll need to fix the errors it shows you. + +To update the zone files, go to /var/tilde, and execute: +``` +sudo git pull +sudo cp db.* /etc/bind/ +sudo cp named.conf.* /etc/bind/ +sudo systemctl reload bind9 +sudo journalctl -xe +``` + +# CentOS +Execute the following: +``` +sudo yum -y install bind bind-utils git +cd /var +sudo git clone https://tildegit.org/ubergeek/.tilde.git +sudo mv .tilde tilde +sudo cp db.* /etc/bind/ +sudo cp named.conf.* /etc/bind/ +``` + +You will have to modify /etc/named.conf to include "/etc/bind/named.conf.local" in order for the above to work correctly. Then you can do the following: + +``` +sudo systemctl restart bind9 +sudo journalctl -xe +``` + +The last command will tell you if everything restarted correctly, and if not, where errors are. You'll need to correct any errors before the service will start correctly. + +To update the zone files, go to /var/tilde, and execute: +``` +sudo git pull +sudo cp db.* /etc/bind/ +sudo cp named.conf.* /etc/bind/ +sudo systemctl reload bind9 +sudo journalctl -xe +``` \ No newline at end of file