LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-29-2009, 07:08 PM   #1
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Rep: Reputation: 18
Exclamation DHCP not handing out dns


Hello I am trying to get fedora dhcp set up but for some reason the clients are not getting dns. If I statically set dns everything works as expected. Here is the dhcpd.conf:

deny client-updates;
ddns-update-style none;
ddns-updates off;
option T150 code 150 = string;
one-lease-per-client false;
allow bootp;
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
# see 'man 5 dhcpd.conf'
#
allow client-updates;
allow unknown-clients;

subnet X.91.79.0 netmask 255.255.255.0 {
interface eth5;
range X.91.79.10 X.91.79.240;
default-lease-time 604800;
max-lease-time 604801;
option domain-name "cisconet.ucmo.edu";
option subnet-mask 255.255.255.0;
option broadcast-address X.91.79.255;
option routers X.91.79.252;
option domain-name-servers X.91.3.113;
option time-offset -3600;
option netbios-name-servers X.91.3.51;
}

..X is ip that is being used...Has anyone else had a similar issue with Fedora release 9 (Sulphur), dhcpd --version: isc-dhcpd-4.0.0?
 
Old 10-29-2009, 10:26 PM   #2
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Original Poster
Rep: Reputation: 18
Ok so in further looking at the issue, I found that windows was just using its old lease (which didnt have dns for some odd reason) and a full release(ipconfig /release) was required in order to show a network failure. All of dhcp has failed. It appears(from wireshark) that the problem is due to to the server not granting any more request, because I can see the clients asking for the dhcp address .
 
Old 10-29-2009, 10:34 PM   #3
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Do you see anything on /var/db/dhcpclient/leases? How about the syslog messages.
 
Old 10-29-2009, 10:37 PM   #4
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Original Poster
Rep: Reputation: 18
I am getting closer to the problem, it appears in /var/log/messages. When a client tries to make a request this output comes out:
Oct 29 18:23:11 cisconet dhcpd: DHCPREQUEST for 0.0.0.0 from YY:YY:YY:YY:YY:YY via eth5: unknown lease 0.0.0.0.

-I have removed the mac address(YY)
 
Old 10-29-2009, 10:41 PM   #5
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Make sure that he dhcp service running in the server? Or if you have made a recent change in the conf, do a restart and see how it goes.
 
Old 10-29-2009, 10:45 PM   #6
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Original Poster
Rep: Reputation: 18
I have not made any recent changes to the server(other then the power going out to cause all of this...so I am unable to track changes that may have been made by someone else). In /var/lib/dhcpd/dhcpd.leases there are some leases . Also dhcpcd is running:
ps awx | grep dhcpd
2277 ? Ss 0:00 /usr/sbin/dhcpd
Do you see any trouble in the config above ? Also looking at the leases, it dose not appear that I am anywhere near the max based on the range.
 
Old 10-29-2009, 10:49 PM   #7
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Original Poster
Rep: Reputation: 18
Hmmm, in looking around it appears the windows client is doing something strange:
"That makes no sense at all. Clients just shouldn't do that. The
client is clearly broadcasting this packet, as it's being picked up by
your relay.

What could be happening here is that the client is sending a
DHCPREQUEST with no requested-address option. In this case, piaddr(0)
would print "0.0.0.0". This is not valid according to RFC 2131.
"
 
Old 10-29-2009, 11:03 PM   #8
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu, arch
Posts: 110

Original Poster
Rep: Reputation: 18
Ok, so I have fixed it and the problem was clearly client side. The windows xp machines were requesting an improper address and were using cache before that. Doing an ipconfig /release on the clients then restarting the machine allows them to grab the proper ip.
 
  


Reply

Tags
dhcpcd, fedora, windows, xp


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
DHCP not handing IP to KVM in PXE boot drschloss Linux - Networking 2 09-03-2010 05:31 PM
DHCP autoupdate DNS failing to update reverse DNS ScottChapman Linux - Networking 0 12-20-2008 07:42 PM
DHCP handing out the wrong dns servers PCC Linux - Networking 2 05-17-2007 07:25 PM
Linux is handing gjagadish Linux - Networking 1 10-28-2005 11:54 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration