LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-30-2006, 08:45 AM   #1
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Rep: Reputation: 30
BIND DNS issues


Here goes:

We have a /16 network: 10.203.x.x/255.255.0.0

Hosts are seporated into various groups.

10.203.0.x - routers and switches
10.203.1.x - Servers
10.203.2.x - Printers
10.203.3.x - static devices
10.203.4.x - dhcp

Now the problems I'm having is due to bind breaking.

named.conf
Code:
include "/etc/namedb/rndc.key";
options {
        directory       "/etc/namedb";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";
        listen-on       { 10.203.1.7; };



};

// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
        type hint;
        file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "master/localhost.rev";
};


zone "enodis.com" {
        type slave;
        masters {
                10.0.1.1;
                };
        file "/etc/namedb/enodis.com.hosts";
        };
zone "viscount-catering.co.uk" {
        type master;
        file "/etc/namedb/viscount-catering.co.uk.hosts";
        allow-update { 127.0.0.1; 10.203.1.7/32; };
};
zone "203.10.in-addr.arpa" {
        type master;
        file "/etc/namedb/10.203.rev";
        };
Forward Zone

Code:
$ttl 3600
@	IN	SOA	intranet.viscount-catering.co.uk. joel.intranet.viscount-catering.co.uk. (
			2006022667
			3h
			15m
			3w
			3h )
@              IN      NS      intranet.viscount-catering.co.uk.
intranet      IN      A       10.203.1.7
notesserver   IN      A       10.203.1.6
filestore     IN      A       10.203.1.5
bdc           IN      A       10.203.1.4
server1       IN      A       10.203.1.3
baanilo       IN      A       10.203.1.1
baan          IN      A       10.203.1.2
marpr         IN      A       10.203.2.1
salpr         IN      A       10.203.2.2
finpr         IN      A       10.203.2.3
serpr         IN      A       10.203.2.5
propr         IN      A       10.203.2.4
conplot       IN      A       10.203.2.6
proplot       IN      A       10.203.2.7
itpr          IN      A       10.203.2.8
ap1           IN      A       10.203.3.1
ap2           IN      A       10.203.3.2
ap3           IN      A       10.203.3.3
ap4           IN      A       10.203.3.4
ap5           IN      A       10.203.3.5
pix           IN      A       10.203.0.1
reverse Zone

Code:
$ttl 38400
@	IN	SOA	intranet.viscount-catering.co.uk. joel.intranet.viscount-catering.co.uk. (
			2006053001
			10800
			3600
			604800
			38400 )
@	IN	NS	intranet.viscount-catering.co.uk.
7.1	12H IN	PTR	intranet.
Now the problem is that nslookup doesnt work either on the local machine, or the windows machines that use it for DNS, either using the name of the machine, or the FQDN of the host being looked up.

[joel@intranet ~]$ nslookup intranet
Server: 10.203.1.7
Address: 10.203.1.7#53

** server can't find intranet: NXDOMAIN


But, on the DNS server, I can ping everything that has an entry and is in the 10.203.1.x range, but nothing else, the same happens on the windows machines. The host command fails point blank.

[joel@intranet ~]$ ping server1
PING server1.viscount-catering.co.uk (10.203.1.3): 56 data bytes
64 bytes from 10.203.1.3: icmp_seq=0 ttl=128 time=0.382 ms
^C
--- server1.viscount-catering.co.uk ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.382/0.382/0.382/0.000 ms
[joel@intranet ~]$ host server1
Host server1 not found: 3(NXDOMAIN)


Despite not being able to nslookup the hosts, i can still get to them via http://host, but still, only if the host is on the 10.203.1.x range.

Any ideas what is causing this, and how to solve it?

Joel
 
Old 05-31-2006, 02:32 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Do you have a:
Code:
domain domain.com or
search domain.com
in your /etc/resolv.conf

Last edited by bathory; 05-31-2006 at 03:50 AM.
 
Old 05-31-2006, 03:15 AM   #3
joel112
Member
 
Registered: Apr 2003
Distribution: Debian
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bathory
Do you hace a:
Code:
domain domain.com or
search domain.com
in your /etc/resolv.conf
Yeh, I have both, and the Windows boxen have the searchdomain set to the required domain too.

Joel
 
Old 05-31-2006, 04:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The fact that ping and http work for the 10.203.1.x range, probably means that these hosts are defined in /etc/hosts. Try to change
Code:
@              IN      NS      intranet.viscount-catering.co.uk.
to
Code:
 NS      intranet.viscount-catering.co.uk.
increase the serial, restart named and see if it works.
 
  


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
DNS and bind amjad General 0 02-17-2005 09:19 AM
DNS issues with BIND xemous Linux - Networking 6 01-12-2005 11:18 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
DNS and Bind pharpe Linux - Networking 3 01-15-2003 02:54 PM
DNS and BIND dilberim82 Linux - General 10 07-13-2001 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 PM.

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