I successfully run BIND9 for using domain name over the local network (BIND9 installed in 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:

IP address :
Subnet Mask :

DHCP Server:
Start IP :
End IP :
DNS1 address :
DNS2 address :

Fixed IP Address :
Subnet Mask :
DNS address :
Default Gateway :

Here's my BIND9 configurations:


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";


$TTL 8640
my.lan. IN      SOA     ns1.my.lan. admin.my.lan. (
          38400 )    
my.lan. IN      NS      ns1.my.lan.
my.lan. IN      MX     10 mta.my.lan.

www           IN      A
mta              IN      A
ns1               IN       A
@       IN      A


$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 PC it works but it's not working in the other PC

ERROR message of nslookup

mbnoimi@mbnoimi-pc ~ $ nslookup my.lan

** server can't find my.lan: NXDOMAIN

is mbnoimi-pc running bind9? if its not try nslookup my.lan if that works you will need to update /etc/resolv.conf to use your bind9 server

  • is mbnoimi-pc the same box as – max Dec 24 '12 at 3:18
  • @max no... mbnoimi-pc is one of network PCs. BIND9 installed in PC... the output of nslookup my.lan is: mbnoimi@mbnoimi-pc ~ $ nslookup my.lan Server: Address: Name: my.lan Address: the content of /etc/resolv.conf which exist in PC nameserver – mbnoimi Dec 25 '12 at 16:08
  • does that mean its working now? nslookup from mbnoimi-pc is replying with Address: which is correct? your orginal question shows nslookup trying to query localhost for dns instead of – max Dec 25 '12 at 21:17

mbnoimi is trying to access a local nameserver at the loopback address If (on mbnoimi) no local nameserver is running then /etc/resolv.conf contains the wrong information. If a local nameserver is running (on mbnoimi) then it is incorrectly configured.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.