LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-05-2005, 05:39 AM   #1
gurusmaran
Member
 
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Rep: Reputation: 15
Issues with BIND


Hi,

I have set up DHCP, Samba and Squid on a machine running CentOS 4 (a RHEL clone). I have just set-up DNS, and I have a few issues:

1. I have created a zone called "xxxzone", and i have manually entered the hostname and IP of a machine called "xxxhost". When I try to ping "xxxhost", the machine name doesn't get resolved, but when i ping "xxxhost.xxxzone", it does. I have previously set up DNS on Win2k, and I was able to access a machine through it's machine name, and I didn't have to type in machinename.zonename to get access. Is there a way in BIND where I can access a machine only through it's machine name, and not through machinename.zonename?

2. I have set up DHCP, and have enabled Dynamic DNS. But dynamic DNS registration does not happen, because the record of a machine accessing the DNS and DHCP server hasn't been registered in DNS. What could be the issue? Is there an option I have to turn on in BIND?

I use bind-9.2.4-2.

Please help!


Guru
 
Old 09-05-2005, 09:04 AM   #2
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: OpenSuse Tumbleweed
Posts: 288

Rep: Reputation: 39
Issue #1 is not a BIND issue at all! It's the local resolver (which may happen to use BIND). Set your "search" domain in either a system control panel, or in /etc/resolv.conf

2) No clue. I've setup DDNS in BIND before and never had any problems at all. Not even sure exactly what you're talking about? Turn it on and it goes. Did you remember to give it an access list of what IP ranges are allowed to update it?
 
Old 09-05-2005, 03:22 PM   #3
anand_kt
Member
 
Registered: Dec 2004
Location: Chennai, India
Distribution: Red Hat, Knoppix
Posts: 86

Rep: Reputation: 15
Issue #1 : Yeah maybe local resolver is wrong, did u try the reverse lookup and see what name does it display for that IPADDR? maybe ur host records are wrong...
 
Old 09-05-2005, 04:13 PM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: Issues with BIND

Quote:
Originally posted by gurusmaran

2. I have set up DHCP, and have enabled Dynamic DNS. But dynamic DNS registration does not happen, because the record of a machine accessing the DNS and DHCP server hasn't been registered in DNS. What could be the issue? Is there an option I have to turn on in BIND?
Guru
The above is confusing. How is bind configured to receive DDNS updates? From your DHCP server (nsupdate using a key) -or- from hosts capable of sending DDNS update requests directly to bind. i.e. Windows 2000/XP. Based on my experience, keeping DHCP registrations and DNS in-sync is easier if only one system (DHCP) is updating DNS. Not the hosts and DHCP.

Your best bet for support is to post the "actual" errors logged from bind when it recieves an update request. This way we can tell if its DHCP, a key mismatch or a bind config error.

...and yes, bind zones must have the allow-update directive within the zone definition for dynamic updates to occur. See: man named.conf (search for allow-update for syntax)
 
Old 09-08-2005, 02:12 AM   #5
gurusmaran
Member
 
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Original Poster
Rep: Reputation: 15
Hi,

Issue 1 is resolved.

As for the DDNS and BIND issue, here is the zone part of my named.conf file:

------
include "/etc/rndc.key";
zone "ldlinux" {
type master;
file "ldlinux.hosts";
allow-update {
192.168.1.0/24;
};
allow-query {
192.168.1.0/24;
};
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/var/named/192.168.1.rev";
};
-------

Here is my dhcpd.conf file:

-------
authoritative;
option domain-name "ldlinux";
#ddns-updates on;
ddns-update-style interim;
#allow client-updates;


subnet 192.168.1.0 netmask 255.255.255.0 {
ddns-domainname "ldlinux";
ddns-updates on;
# ddns-update-style interim;
allow client-updates;
range 192.168.1.21 192.168.1.100;
default-lease-time 86400;
max-lease-time 86400;
# Default Gateway
option routers 192.168.1.1;
option ip-forwarding off;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.95;
host comp1 {
hardware ethernet xx:xx:xx:xx:xx:xx;
fixed-address 192.168.1.44;
}
}
--------

I've excluded an IP in the range (called comp1) for a machine, as mentioned in dhcpd.conf. Now, I notice that there are no entries for comp1 in the dhcpd.leases file. Is this normal? Do I have to manually enter the hostname/IP details manually in DNS for comp1 and other machines that'll have a reserved IP? Machines that don't have a reserved IP are mentioned in dhcpd.leases though.

Machines get connected to DHCP and are able to access the DNS server, and are able to resolve machine names that I've manually entered in DNS. But DNS doesn't receive information about DHCP clients, whether they have reserved IPs or not. What could be the problem?

I hope the dhcpd.conf and named.conf files help you understand my problem better. Please help!


--
Guru

Last edited by gurusmaran; 09-08-2005 at 03:32 AM.
 
Old 09-12-2005, 10:05 PM   #6
gurusmaran
Member
 
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Original Poster
Rep: Reputation: 15
Hi,

Could someone help me out with this problem?


Guru
 
Old 09-13-2005, 06:13 AM   #7
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Perhap a key statement in your dhcpd.conf file that matchs the one used by your DNS ?
 
Old 09-14-2005, 11:21 PM   #8
gurusmaran
Member
 
Registered: Apr 2001
Location: India
Distribution: CentOS 4.1
Posts: 35

Original Poster
Rep: Reputation: 15
Hi,

Thanks for replying. Could you guide me as to how I should do this, since I couldn't find any information about this anywhere on the web.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 issues with BIND xemous Linux - Networking 6 01-12-2005 11:18 AM
Bind and security issues jchristman Linux - Networking 0 07-16-2003 08:36 AM
BIND - logging issues thebee Linux - Software 0 06-23-2003 12:20 PM
How do I revert to Bind 8 from Bind 9? digging4roots Linux - Newbie 3 06-08-2002 04:40 PM
BIND / named issues Ratclaws Linux - Networking 2 03-08-2002 01:09 AM

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

All times are GMT -5. The time now is 04:50 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