For internal zone
This example uses internal address[10.0.0.0/24], domain name[server.world], but please use your own one when you set config on your server.
[root@dlp ~]#
vi /var/named/server.world.lan
$TTL 86400
@ IN SOA dlp.server.world. root.server.world. (
2014071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
# define name server
IN NS dlp.server.world.
# internal IP address of name server
IN A 10.0.0.30
# define Mail exchanger
IN MX 10 dlp.server.world.
# define IP address and hostname
dlp IN A 10.0.0.30
For external zone
This example uses external address[172.16.0.80/29], domain name[server.world], but please use your own one when you set config on your server.
[root@dlp ~]#
vi /var/named/server.world.wan$TTL 86400 @ IN SOA dlp.server.world. root.server.world. ( 2014071001 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL )
# define name server
IN NS dlp.server.world.
# external IP address of name server
IN A 172.16.0.82
# define Mail exchanger
IN MX 10 dlp.server.world.
# define IP address and hostname
dlp IN A 172.16.0.82Set Zones for Address Resolution
Create zone files that servers resolve domain names from IP address.
For internal zone
This example uses internal address[10.0.0.0/24], domain name[server.world], but please use your own one when you set config on your server
[root@dlp ~]#
vi /var/named/0.0.10.db$TTL 86400 @ IN SOA dlp.server.world. root.server.world. ( 2014071001 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL )
# define name server
IN NS dlp.server.world.
# define range that this domain name is in
IN PTR server.world. IN A 255.255.255.0
# define IP address and hostname30 IN PTR dlp.server.world.
For external zone
This example uses external address[172.16.0.80/29], domain name[server.world], but please use your own one when you set config on your server
[root@dlp ~]#
vi /var/named/80.0.16.172.db$TTL 86400 @ IN SOA dlp.server.world. root.server.world. ( 2014071001 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL )# define name serverIN NS dlp.server.world.# define range that this domain name is inIN PTR server.world. IN A 255.255.255.248# define IP address and hostname82 IN PTR dlp.server.world.
0 comments:
Post a Comment