# vi /etc/hosts
IP Number
HostName.Domain Name
192.168.1.242
dns.ispsetup.edu
dns
127.0.0.1
localhost.localdomain
localhost
#vi /etc/named.conf acl all{0.0.0.0/0;}; options { directory "/var/named"; query-source address * port 53; allow-query{all;}; }; zone "." IN { type hint; file "named.ca"; }; zone "ispsetup.edu" IN { type master; file "ispsetup.edu-fz"; allow-query{all;}; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-query{none;}; }; zone "1.168.192.in-addr.arpa" IN { type master; file "ispsetup.edu-rev"; allow-query{all;}; };
Alias
#vi /var/named/ispsetup.com-fz @
IN
SOA
rob.ispsetup.edu. root.isp.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum
; ; Domain Declaration @ IN NS ; ; IP table rob sadi mostafa
rob.ispsetup.edu.
IN IN
; ; Canonical Entry www
A 192.9.200.161 IN A 192.9.200.153 A 192.9.200.155
IN
CNAME
rob
#vi /var/named/ispsetup.com-rev @
IN
SOA
rob.ispsetup.edu. root.ispsetup.edu. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum
@
IN
NS
161 153 155
IN IN IN
PTR PTR PTR
rob.ispsetup.edu. rob.ispsetup.edu. sadi.ispsetup.edu. mostafa.ispsetup.edu.
# vi /var/named/named.local @ IN
SOA
localhost. root.localhost. ( 20020401 ; Serial
@
IN
242
# vi
IN
NS
28800
; Refresh
14400
; Retry
3600000
; Expire
86400 )
; Minimum
dns.ispsetup.edu.
PTR
localhost.
/etc/resolv.conf search
ispsetup.edu
nameserver 192.168.1.242