LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

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?

Keith
 
Old 12-05-2017, 04:45 PM   #2
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware x86 & ARM
Posts: 135

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

Can you check both:
/etc/hosts
/etc/HOSTNAME
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
thirteen_engines
Member
 
Registered: Sep 2009
Distribution: Slackware 14.1
Posts: 108

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
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 978

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.
 
  


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
dhcpd - Unable to add forward map from host.domain.org 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration