Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

zone "" {
    type master;
    file "/etc/bind/zones/";


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

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


$TTL 8640
@ IN SOA (
                        2012121600; serial
                        28800; refresh, seconds
                        604800; retry, seconds
                        604800; expire, seconds
                        86400 ); minimum, seconds

                     IN  NS

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
share|improve this question

2 Answers 2

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.

share|improve this answer

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

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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