1
1
I have a DNS server with the following zones in /etc/bind/named.conf.local
zone "david.com" {
type master;
file "forward";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "reverse";
};
The file forward is as follows:
$TTL 604800
@ IN SOA dlcsrv.david.com. root.david.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800) ; Negative Cache TTL
;
@ IN NS david.com.
@ IN A 192.168.1.37
www IN A 192.168.1.37
ftp IN A 192.168.1.37
And reverse file:
$TTL 604800
@ IN SOA dlcsrv.david.com. root.david.com. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800) ; Negative Cache TTL
;
@ IN NS david.com.
37 IN PTR david.com.
Currently, this works so that if I type nslookup david.com
I get the address 192.168.1.37
, and if I type nslookup 192.168.1.37
I get name = david.com
.
How can I add another zone, called david.net
, which should also be mapped to the IP 192.168.1.37
.
It has been a challenging task. I will thank you for any guidance.