LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 10-29-2009, 08:08 PM   #1
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6
Exclamation DHCP not handing out dns


[Log in to get rid of this advertisement]
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?
windows_xp_2003 mbostwick is offline  
Tag This Post ,
Reply With Quote
Old 10-29-2009, 11:26 PM   #2
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6

Original Poster
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 .
linuxfedora mbostwick is offline     Reply With Quote
Old 10-29-2009, 11:34 PM   #3
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 153
Thanked: 3
Do you see anything on /var/db/dhcpclient/leases? How about the syslog messages.
windows_vista avijitp is offline     Reply With Quote
Thanked by:
Old 10-29-2009, 11:37 PM   #4
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6

Original Poster
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)
linuxfedora mbostwick is offline     Reply With Quote
Old 10-29-2009, 11:41 PM   #5
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 153
Thanked: 3
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.
windows_vista avijitp is offline     Reply With Quote
Old 10-29-2009, 11:45 PM   #6
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6

Original Poster
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.
linuxfedora mbostwick is offline     Reply With Quote
Old 10-29-2009, 11:49 PM   #7
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6

Original Poster
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.
"
linuxfedora mbostwick is offline     Reply With Quote
Old 10-30-2009, 12:03 AM   #8
mbostwick
Member
 
Registered: Feb 2009
Location: Where ever life takes me
Distribution: gentoo,opensuse,ubuntu
Posts: 89
Thanked: 6

Original Poster
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.
linuxfedora mbostwick is offline  
Tag This Post ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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 1 08-28-2009 10:39 AM
DHCP autoupdate DNS failing to update reverse DNS ScottChapman Linux - Networking 0 12-22-2008 04:44 AM
DHCP handing out the wrong dns servers PCC Linux - Networking 2 05-17-2007 08:25 PM
Linux is handing gjagadish Linux - Networking 1 10-28-2005 12:54 PM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 11:40 AM


All times are GMT -5. The time now is 11:56 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration