1.
Address
|
-
nano
/etc/network/interfaces auto eth0 iface eth0 inet static address ... gateway ... |
2.
DNS
a.
Master
|
-
apt-get
install bind9 dnsutils -
cd
/etc/bind -
nano
named.conf.local zone “smkth.com”{ type master; file “/etc/bind/db.smkth”; }; zone “100.168.192.in-addr.arpa”{ type master; file “/etc/bind/db.10”; }; |
b.
Record
|
-
Cp db.127 db.10 -
Cp db.local db.smkth -
cd
/etc/bind -
nano
db.smkth ; ; BIND
data file for local loopback interface $TTL 604800 @ IN
SOA smkth.com. root.smkth.com.
( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; ;
Commentout below three lines @ IN NS smkth.com. @ IN A 192.168.100.10 cisco IN A 192.168.100.10 android IN A 192.168.100.10 www IN CNAME cisco.smkth.com. mail IN A 192.168.100.20 @ IN MX 10 mail -
nano
db.10 ; ; BIND
reverse data file for local loopback interface ; $TTL 604800 @ IN
SOA smkth.com. root.smkth.com.
( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; ;
Commentout below two lines @ IN NS smkth.com. 10 IN PTR smkth.com. 10 IN PTR cisco.arif.com. 20 IN PTR android.arif.com. 10 IN PTR www.arif.com. 20 IN PTR mail.arif.com. -
nano
/etc/resolv.conf name-server
192.168.100.10 -
/etc/init.d/bind9
restart |






No comments:
Post a Comment