Site Loader

1. Run the below command to
2. Setting up Secondary(Slave) DNS Server:
3. Run the below command to Install bind packages
yum install bind bind-utils –y
4. Run the below command to open the file name.conf in edit mode
vi /etc/name.conf
5. Modify file to bold shown below
a. listen-on port 53 { 127.0.0.1; 192.168.1.101;}; ### Master DNS IP
allow-query { localhost; 192.168.1.0/24;}; ### IP Range
allow-transfer{ localhost; 192.168.1.102; }; ### Slave DNS IP
b. add below zones after last zone:
zone “saffioti.local” IN {
type master;
file “forward.saffioti “;
allow-update { none; };
};
zone “1.168.192.in-addr.arpa” IN {
type master;
file “reverse.saffioti “;
allow-update { none; };
};
6. Creating forward and reverse zone files which we mentioned in the ‘/etc/named.conf’ file.
7. Run the below command to create forward.saffioti file in the ‘/var/named’ directory.
vi /var/named/forward.saffioti
8. Add the following lines in the file opened
$TTL 86400
@ IN SOA masterdns.saffioti.local. root.saffioti.local. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS masterdns.saffioti.local.
@ IN NS secondarydns.saffioti.local.
@ IN A 192.168.1.101
@ IN A 192.168.1.102

Post Author: admin

x

Hi!
I'm Irma!

Would you like to get a custom essay? How about receiving a customized one?

Check it out