BIND : Configure Zones for Name Resolution2019/07/16 |
Create zone files that servers resolve IP address from domain name. | |
[1] | For internal zone, On this example, Configure BIND with internal address [10.0.0.0/24], domain name [srv.world]. Pease replace IP addresses and Domain Name to your own environment. |
root@dlp:~#
vi /etc/bind/srv.world.lan $TTL 86400 @ IN SOA dlp.srv.world. root.srv.world. ( 2019071601 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) # define name server IN NS dlp.srv.world. # define name server's IP address IN A 10.0.0.30 # define mail exchanger IN MX 10 dlp.srv.world. # define IP address of the hostname dlp IN A 10.0.0.30 |
[2] | For external zone, On this example, Configure BIND with internal address [172.16.0.80/29], domain name [srv.world]. Pease replace IP addresses and Domain Name to your own environment. |
root@dlp:~#
vi /etc/bind/srv.world.wan $TTL 86400 @ IN SOA dlp.srv.world. root.srv.world. ( 2019071601 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) # define name server IN NS dlp.srv.world. # define name server's IP address IN A 172.16.0.82 # define mail exchanger IN MX 10 dlp.srv.world. # define IP address of the hostname dlp IN A 172.16.0.82 |
Configure Zones for Address Resolution
|
Create zone files that servers resolve domain names from IP address. | |
[3] | For internal zone, On this example, Configure BIND with internal address [10.0.0.0/24], domain name [srv.world]. Pease replace IP addresses and Domain Name to your own environment. |
root@dlp:~#
vi /etc/bind/0.0.10.db $TTL 86400 @ IN SOA dlp.srv.world. root.srv.world. ( 2019071601 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) # define name server IN NS dlp.srv.world. # define the range of this domain included IN PTR srv.world. IN A 255.255.255.0 # define hostname of the IP address 30 IN PTR dlp.srv.world. |
[4] | For external zone, On this example, Configure BIND with internal address [172.16.0.80/29], domain name [srv.world]. Pease replace IP addresses and Domain Name to your own environment. |
root@dlp:~#
vi /etc/bind/80.0.16.172.db $TTL 86400 @ IN SOA dlp.srv.world. root.srv.world. ( 2019071601 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) # define name server IN NS dlp.srv.world. # define the range of this domain included IN PTR srv.world. IN A 255.255.255.248 # define hostname of the IP address 82 IN PTR dlp.srv.world. |
Sponsored Link |
|