Fedora 10
Sponsored Link

Configure Zones2008/11/26

  Create zone files that servers resolve IP address from domain name.

[1] For internal zone

This example uses internal address[192.168.0.0/24], domain name[srv.world], but please use your own one when you set config on your server.
[root@ns ~]#
vi /var/named/srv.world.lan


$TTL 86400
@
IN
SOA
ns.srv.world. root.srv.world. (

2008112601
;Serial

3600
;Refresh

1800
;Retry

604800
;Expire

86400
;Minimum TTL

)
IN
NS
ns.srv.world.

IN
A
192.168.0.17

IN
MX 10
ns.srv.world.


ns
IN
A
192.168.0.17
[2] For external zone

This example uses external address[172.16.0.80/29], domain name[srv.world], but please use your own one when you set config on your server.
[root@ns ~]#
vi /var/named/srv.world.wan


$TTL 86400
@
IN
SOA
ns.srv.world. root.srv.world. (

2008112601
;Serial

3600
;Refresh

1800
;Retry

604800
;Expire

86400
;Minimum TTL

)
IN
NS
ns.srv.world.

IN
A
172.16.0.82

IN
MX 10
ns.srv.world.


ns
IN
A
172.16.0.82
Configure reverse resolving
  Create zone files that servers resolve domain names from IP address.

[3] For internal zone

This example uses internal address[192.168.0.0/24], domain name[srv.world], but please use your own one when you set config on your server.
[root@ns ~]#
vi /var/named/0.168.192.db


$TTL 86400
@
IN
SOA
ns.srv.world. root.srv.world. (

2008112601
;Serial

3600
;Refresh

1800
;Retry

604800
;Expire

86400
;Minimum TTL

)
IN
NS
ns.srv.world.


IN
PTR
srv.world.

IN
A
255.255.255.0


17
IN
PTR
ns.srv.world.
[4] For external zone

This example uses external address[172.16.0.80/29], domain name[srv.world], but please use your own one when you set config on your server.
[root@ns ~]#
vi /var/named/80.0.16.172.db


$TTL 86400
@
IN
SOA
ns.srv.world. root.srv.world. (

2008112601
;Serial

3600
;Refresh

1800
;Retry

604800
;Expire

86400
;Minimum TTL

)
IN
NS
ns.srv.world.


IN
PTR
srv.world.

IN
A
255.255.255.248


82
IN
PTR
ns.srv.world.
Matched Content