LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2012, 01:35 PM   #1
mbnoimi
LQ Newbie
 
Registered: Nov 2012
Location: Syria
Distribution: Linux Mint XFCE
Posts: 28

Rep: Reputation: Disabled
Can't find NS over local network


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
 
Old 12-22-2012, 01:36 PM   #2
mbnoimi
LQ Newbie
 
Registered: Nov 2012
Location: Syria
Distribution: Linux Mint XFCE
Posts: 28

Original Poster
Rep: Reputation: Disabled
ERROR message of nslookup
Code:
mbnoimi@mbnoimi-pc ~ $ nslookup my.lan
Server:		127.0.0.1
Address:	127.0.0.1#53

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an IP from a local network share aussie_penguin Linux - Newbie 2 02-22-2009 09:50 AM
command to find ip address in a local network babu198649 Linux - Newbie 9 12-22-2007 07:09 AM
Samba cannot find local network in kubuntu paulomonteiro Linux - Networking 1 04-27-2007 12:54 PM
find out ip's in your local network ody1 Linux - Networking 3 03-23-2005 11:02 AM
(SuSE 9.1) Unable to find any workgroups in your local network frank-01 Linux - Networking 13 09-06-2004 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration