You are not logged in.

#1 2014-07-20 14:18:02

shadrock
Member
Registered: 2014-07-04
Posts: 5

dhcpd4.service failed

within the last month i installed the dhcpd server on my server
and everything worked fine
for unconnected reasons i had to wipe the server and reinstall arch again
i installed dhcp following the exact same steps and configuration file as the previous install
this time dhcpd refuses to start
the error states 'Unable to complete ddns initialization'
any ideas what is causing the ddns to initialize.
shadrock

---------------
/etc/dhcpd.conf
option domain-name-servers 8.8.8.8;
option subnet-mask 255.255.255.0;
option routers 139.96.30.100;
subnet 139.96.30.0 netmask 255.255.255.0 {
  range 139.96.30.150 139.96.30.250;
}

---------------
systemctl start dhcpd4
Job for dhcpd4.service failed. See 'systemctl status dhcpd4.service' and 'journalctl -xn' for details.

---------------
systemctl status dhcpd4.service
* dhcpd4.service - IPv4 DHCP server
   Loaded: loaded (/usr/lib/systemd/system/dhcpd4.service; enabled)
   Active: failed (Result: exit-code) since Sun 2014-07-20 14:16:48 BST; 3min 55s ago
  Process: 476 ExecStart=/usr/sbin/dhcpd -4 -q -pf /run/dhcpd4.pid (code=exited, status=1/FAILURE)

Jul 20 14:16:48 ashanti dhcpd[476]: irs_resconf_load failed: 59.
Jul 20 14:16:48 ashanti dhcpd[476]: Unable to complete ddns initialization
Jul 20 14:16:48 ashanti dhcpd[476]:
Jul 20 14:16:48 ashanti dhcpd[476]: If you think you have received this message due to a bug rather
Jul 20 14:16:48 ashanti dhcpd[476]: than a configuration issue please read the section on submitting
Jul 20 14:16:48 ashanti systemd[1]: dhcpd4.service: control process exited, code=exited status=1
Jul 20 14:16:48 ashanti systemd[1]: Failed to start IPv4 DHCP server.
Jul 20 14:16:48 ashanti systemd[1]: Unit dhcpd4.service entered failed state.

---------------
journalctl -xn
Jul 20 14:16:48 ashanti systemd[1]: Starting IPv4 DHCP server...
-- Subject: Unit dhcpd4.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li … temd-devel
--
-- Unit dhcpd4.service has begun starting up.
Jul 20 14:16:48 ashanti dhcpd[476]: irs_resconf_load failed: 59.
Jul 20 14:16:48 ashanti dhcpd[476]: Unable to complete ddns initialization
Jul 20 14:16:48 ashanti dhcpd[476]:
Jul 20 14:16:48 ashanti dhcpd[476]: If you think you have received this message due to a bug rather
Jul 20 14:16:48 ashanti dhcpd[476]: than a configuration issue please read the section on submitting
Jul 20 14:16:48 ashanti dhcpd[476]: bugs on either our web page at www.isc.org or in the README file
Jul 20 14:16:48 ashanti dhcpd[476]: before submitting a bug.  These pages explain the proper
Jul 20 14:16:48 ashanti dhcpd[476]: process and the information we find helpful for debugging..
Jul 20 14:16:48 ashanti dhcpd[476]:
Jul 20 14:16:48 ashanti dhcpd[476]: exiting.
Jul 20 14:16:48 ashanti systemd[1]: dhcpd4.service: control process exited, code=exited status=1
Jul 20 14:16:48 ashanti systemd[1]: Failed to start IPv4 DHCP server.
-- Subject: Unit dhcpd4.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li … temd-devel
--
-- Unit dhcpd4.service has failed.
--
-- The result is failed.
Jul 20 14:16:48 ashanti systemd[1]: Unit dhcpd4.service entered failed state.

Offline

#2 2014-07-20 15:58:54

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: dhcpd4.service failed

shadrock wrote:

Jul 20 14:16:48 ashanti dhcpd[476]: irs_resconf_load failed: 59.
Jul 20 14:16:48 ashanti dhcpd[476]: Unable to complete ddns initialization

I believe the error code 59 comes from bind and means "Invalid address format".

Maybe it is a 'bind' bug in the parser similar to this one? https://bugzilla.redhat.com/show_bug.cgi?id=1057298


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#3 2014-07-20 16:59:36

eewallace
Member
Registered: 2013-06-26
Posts: 34

Re: dhcpd4.service failed

It looks like the error comes from a failure to load the DNS information from /etc/resolv.conf. Can you post the contents of that file?

I can produce the same error by setting up a dummy interface with a dhcpd config following the Wiki example and then adding an IPv6 nameserver address to /etc/resolv.conf (i.e, dhcpd starts without complaint without that nameserver and fails once it's added).

Last edited by eewallace (2014-07-20 17:00:58)

Offline

#4 2014-07-22 02:56:01

shadrock
Member
Registered: 2014-07-04
Posts: 5

Re: dhcpd4.service failed

hi
thanks for your replies they pointed me in the right direction,
the problem was my netctl config file pointed to one address and the resolv.conf pointed somewhere else
and the nameserver entry in resolv.conf was incorrect
i fixed resolve.conf and pointed them both to the same nameserver and the dhcpd started up perfectly.

Offline

#5 2014-07-22 03:35:14

eewallace
Member
Registered: 2013-06-26
Posts: 34

Re: dhcpd4.service failed

Glad it helped. Please remember to mark the thread solved.

Offline

Board footer

Powered by FluxBB