Update page 'Setting up a .tilde DNS server'

ubergeek 2018-11-23 20:33:00 -05:00
parent 46f96daa47
commit 5211cef1c0
1 changed files with 54 additions and 0 deletions

@ -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
```