Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-05-2017, 11:06 AM   #1
Registered: Sep 2009
Distribution: Slackware 14.1
Posts: 109

Rep: Reputation: 20
Dhcpd and host name change

Hi all. My apologies if this question has been answered elsewhere. I've searched but ...

The other day I changed the host name on my home server and it seems to have broken dhcpd somehow. None of my home devices that use the dhcpd server can get anything. The server is running as evidenced from 'ps x | grep dhcpd' but no devices are picking up an ip address.

Any ideas?

Old 12-05-2017, 04:45 PM   #2
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 721

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
How exactly did you change the hostname?

Can you check both:
for consistency?

Do you have any hostname declaration in /etc/dhcpd.conf (it might conflict)?

Nothing to be found in the logs - dhcpd complaining?
Old 12-06-2017, 11:22 AM   #3
Registered: Sep 2009
Distribution: Slackware 14.1
Posts: 109

Original Poster
Rep: Reputation: 20
Thanks for the reply, abga. I fixed the problem. The host name in 'hosts' needed changing as well. Dhcpd fired right up and started serving out ip addresses after that. Keith
Old 12-06-2017, 11:27 AM   #4
Senior Member
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 1,135
Blog Entries: 1

Rep: Reputation: Disabled
Now I am not quite sure but it is possible that /etc/resolv.conf file on your clients machines contain the old hostname of your server. I am not quite sure but /etc/resolv.conf is created dynamically by dhcp client provided hostname of dhcp sever is not defined somewhere else (probably in some of /etc/host*). I would start from to comment out all entries in /etc/host* if there is anything there. And then try obtain address from server via dhcp.

Edit: during I was writing this post you have solved the problem.

Last edited by igadoter; 12-06-2017 at 11:29 AM.


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
dhcpd - Unable to add forward map from elvisious Linux - Software 1 03-09-2009 08:57 AM
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 06:58 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 11:32 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 04:58 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:06 AM.

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