Hi guys,
I successfully run BIND9 for using domain name over the local network (BIND9 installed in 192.168.0.74) but when I added WAN for adding the Internet to all the network, all the PCs became unable to see that domain name.
How can I fix this issue?
Here's my router configurations:
Code:
LAN IP:
IP address : 192.168.0.1
Subnet Mask : 255.255.255.0
DHCP Server : ENABLED
DHCP Server:
Start IP : 192.168.0.100
End IP : 192.168.0.254
DNS1 address : 192.168.0.74
DNS2 address : 8.8.8.8
WAN:
Fixed IP Address : 192.168.0.2
Subnet Mask : 255.255.255.0
DNS address : 192.168.0.74
Default Gateway : 192.168.0.190
Here's my BIND9 configurations:
/etc/bind/named.conf.local
Code:
zone "my.lan" {
type master;
file "/etc/bind/zones/my.lan.zone";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
/etc/bind/zones/my.lan.zone
Code:
$TTL 8640
my.lan. IN SOA ns1.my.lan. admin.my.lan. (
2012121600
28800
3600
604800
38400 )
my.lan. IN NS ns1.my.lan.
my.lan. IN MX 10 mta.my.lan.
www IN A 192.168.0.74
mta IN A 192.168.0.74
ns1 IN A 192.168.0.74
@ IN A 192.168.0.74
/etc/bind/zones/rev.0.168.192.in-addr.arpa
Code:
$TTL 8640
@ IN SOA ns1.my.lan. admin.my.lan. (
2012121600; serial
28800; refresh, seconds
604800; retry, seconds
604800; expire, seconds
86400 ); minimum, seconds
IN NS ns1.my.lan.
2 IN PTR my.lan
PS:
When I use "nslookup my.lan" in 192.168.0.74 PC it works but it's not working in the other PC