User Tools
databaseandnetworkmanagement:slave_dns_on_redhat
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| databaseandnetworkmanagement:slave_dns_on_redhat [2017/08/29 10:20] – created ekenny | databaseandnetworkmanagement:slave_dns_on_redhat [2021/06/25 10:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Setup RedHat as DNS Slave ====== | ||
| + | SSH to server as scotty | ||
| + | |||
| + | * sudo yum install bind | ||
| + | * sudo yum bind-utils | ||
| + | * sudo cp / | ||
| + | * sudo nano / | ||
| + | < | ||
| + | options { | ||
| + | listen-on port 53 { 127.0.0.1; 192.168.123.222; | ||
| + | listen-on-v6 port 53 { ::1; }; | ||
| + | directory "/ | ||
| + | dump-file "/ | ||
| + | statistics-file "/ | ||
| + | memstatistics-file "/ | ||
| + | allow-query | ||
| + | |||
| + | /* | ||
| + | - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion. | ||
| + | - If you are building a RECURSIVE (caching) DNS server, you need to enable | ||
| + | | ||
| + | - If your recursive DNS server has a public IP address, you MUST enable access | ||
| + | | ||
| + | cause your server to become part of large scale DNS amplification | ||
| + | | ||
| + | | ||
| + | */ | ||
| + | recursion yes; | ||
| + | |||
| + | dnssec-enable yes; | ||
| + | dnssec-validation yes; | ||
| + | |||
| + | /* Path to ISC DLV key */ | ||
| + | bindkeys-file "/ | ||
| + | |||
| + | managed-keys-directory "/ | ||
| + | |||
| + | pid-file "/ | ||
| + | session-keyfile "/ | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | * **Replace 192.168.123.222 with whatever IP Address you want as DNS slave.** | ||
| + | * Below the options, in the same file (/ | ||
| + | < | ||
| + | zone " | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | |||
| + | zone " | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | |||
| + | zone" | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | zone " | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | |||
| + | zone" | ||
| + | type slave; | ||
| + | file "/ | ||
| + | masters { 10.91.100.71; | ||
| + | }; | ||
| + | </ | ||
| + | * SSH to the master dns server (qadb2) | ||
| + | * sudo nano / | ||
| + | * Ensure that: < | ||
| + | * If it is not there add it and save your changes | ||
| + | * sudo service named restart | ||
| + | * **SSH back to your slave dns** | ||
| + | * ls -l / | ||
| + | * Ensure forward and reverse are present for crown extenet and errigal. | ||
| + | * If successful you should now be able to set this as a DNS. | ||
| + | * Remember to restart named on the master and slave so the changes can take place | ||