Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

/var/named/chroot/etc/named.

conf

Configuring Forward Lookup

To Toadd addthe thebelow belowlines lines zone redhat.com" IN { zone redhat.com" IN { type typemaster; master; file fileredhat.for"; redhat.for"; }; };

Copying CopyingForward Forwardlookup lookupzone zonefile file

cp cp/usr/share/doc/bind-9.3.3/sample/var/named/ /usr/share/doc/bind-9.3.3/sample/var/named/ localhost.zone localhost.zone /var/named/chroot/var/named/redhat.for /var/named/chroot/var/named/redhat.for

Open Openconfiguration configurationfor forediting editing

[root@comp1 [root@comp1]#cd ]#cd/var/named/chroot/var/named/ /var/named/chroot/var/named/


[root@comp1 [root@comp1named]# named]#vim vim redhat.for redhat.for

/var/named/chroot/var/named/redhat.for

Configuring DNS Server IP address

To Toadd addthe theoptions options $TTL $TTL 86400 86400 @ @ (( 42 42 3H 3H 15M 15M 1W 1W IN IN IN IN IN IN IN IN NS NS A A A A ;;serial serial(d. (d.adams) adams) ;;refresh refresh ;;retry retry ;;expiry expiry ;;minimum minimum IN IN SOA SOA

server.redhat.com. server.redhat.com.root.redhat.com. root.redhat.com.

Open Openconfiguration configurationfor forediting editing [root@comp1 [root@comp1~]# ~]#vi vi /etc/resolv.conf /etc/resolv.conf

Add Addthe theDNS DNSserver serverIP IPaddress addressin infile file/etc/resolv.conf /etc/resolv.conf nameserver 192.168.0.253 nameserver 192.168.0.253

1D 1D)) server.redhat.com. server.redhat.com. 192.168.0.253 192.168.0.253 192.168.0.254 192.168.0.254

server server server2 server2 www www

CNAME CNAME server2 server2

You might also like