/etc/named.conf.
zone "chida.in" {
type master;
notify no;
allow-query { any; };
file "chida.zone";
};
zone "yeswedeal.com" {
type master;
notify no;
allow-query { any; };
file "yeswedeal.zone";
};
zone "0.168.192.in-addr.arpa" {
type master;
notify no;
file "192-168-0.zone";
};
chida.zone
# vi /var/named/chroot/var/named/chida.zone
$TTL 3D
@ IN SOA ns1.chida.in. hostmaster.chida.in. (
200211152 ; serial#
3600 ; refresh, seconds
3600 ; retry, seconds
3600 ; expire, seconds
3600 ) ; minimum, seconds
NS www ; Inet Address of nameserver
chida.in. MX 10 mail ; Primary Mail Exchanger
localhost A 127.0.0.1
server A 192.168.0.1
mail A 192.168.0.2
ns1 CNAME server
www CNAME server
yeswedeal.zone
# vi /var/named/chroot/var/named/yeswedeal.zone
$TTL 3D
@ IN SOA ns1.yeswedeal.com. hostmaster.yeswedeal.com. (
200211152 ; serial#
3600 ; refresh, seconds
3600 ; retry, seconds
3600 ; expire, seconds
3600 ) ; minimum, seconds
NS www ; Inet Address of nameserver
yeswedeal.com. MX 10 mail ; Primary Mail Exchanger
localhost A 127.0.0.1
server A 192.168.0.1
mail A 192.168.0.3
ns1 CNAME server
www CNAME server
192-168-0.zone
# vi /var/named/chroot/var/named/192-168-0.zone
$TTL 3D
@ IN SOA www.chida.in. hostmaster.chida.in. (
200303301 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
NS www ; Nameserver Address
$TTL 3D
@ IN SOA www.yeswedeal.com. hostmaster.yeswedeal.com. (
200303301 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
NS www ; Nameserver Address
# chkconfig named on
# /etc/init.d/named { start | stop | status | restart }
# dig www.chida.in
# nslookup www.yeswedeal.com
No comments:
Post a Comment