Nach einem systemctl start univention-dhcp.service steht in den Logs folgendes:
journalctl -u univention-dhcp:
Jun 02 12:41:16 ucs systemd[1]: Starting LSB: DHCP server...
Jun 02 12:41:16 ucs dhcpd[15081]: Internet Systems Consortium DHCP Server 4.3.5
Jun 02 12:41:16 ucs dhcpd[15081]: Copyright 2004-2016 Internet Systems Consortium.
Jun 02 12:41:16 ucs dhcpd[15081]: All rights reserved.
Jun 02 12:41:16 ucs dhcpd[15081]: For info, please visit https://www.isc.org/software/dhcp/
Jun 02 12:41:16 ucs univention-dhcp[15073]: dhcpd self-test failed with 1. Check /etc/dhcp/dhcpd.conf.
Jun 02 12:41:16 ucs univention-dhcp[15073]: The error was:
Jun 02 12:41:16 ucs univention-dhcp[15073]: Internet Systems Consortium DHCP Server 4.3.5
Jun 02 12:41:16 ucs univention-dhcp[15073]: Copyright 2004-2016 Internet Systems Consortium.
Jun 02 12:41:16 ucs univention-dhcp[15073]: All rights reserved.
Jun 02 12:41:16 ucs univention-dhcp[15073]: For info, please visit https://www.isc.org/software/dhcp/
Jun 02 12:41:16 ucs univention-dhcp[15073]: Configuration file errors encountered -- exiting
Jun 02 12:41:16 ucs univention-dhcp[15073]: If you think you have received this message due to a bug rather
Jun 02 12:41:16 ucs univention-dhcp[15073]: than a configuration issue please read the section on submitting
Jun 02 12:41:16 ucs univention-dhcp[15073]: bugs on either our web page at www.isc.org or in the README file
Jun 02 12:41:16 ucs univention-dhcp[15073]: before submitting a bug. These pages explain the proper
Jun 02 12:41:16 ucs univention-dhcp[15073]: process and the information we find helpful for debugging..
Jun 02 12:41:16 ucs univention-dhcp[15073]: exiting.
Jun 02 12:41:21 ucs univention-dhcp[15073]: Starting DHCP server: dhcpdok: run: univention-dhcp: (pid 15102) 0s, normally down
Jun 02 12:41:21 ucs univention-dhcp[15073]: .
Jun 02 12:41:21 ucs systemd[1]: Started LSB: DHCP server.
Jun 02 12:42:17 ucs systemd[1]: Stopping LSB: DHCP server...
Jun 02 12:42:22 ucs univention-dhcp[15331]: Stopping DHCP server: dhcpdok: down: univention-dhcp: 0s
Jun 02 12:42:22 ucs univention-dhcp[15331]: .
Jun 02 12:42:22 ucs systemd[1]: Stopped LSB: DHCP server.
/var/log/dhcp-ldap-startup.log ist leer.
/etc/dhcp/dhcpd.conf (exakt die selbe wie vor dem Update):
Die dhcpd.conf wird normalerweise aus einem Univention-Template erzeugt. Das Standardtemplate hat die Option ldap-debug-file auskommentiert. Da sie bei Ihnen hingegen aktiv ist, sieht es für mich so aus, als ob die dhcpd.conf entweder nicht aus der Vorlage neu erzeugt wurde, oder (wahrscheinlicher) dass die Vorlage manuell angepasst und während des Updates dann nicht auf die neue Version aktualisiert wurde.
Bitte führen Sie mal univention-check-templates aus. Es sollte modifizierte Vorlagen anzeigen.
Weiterhin sollten Sie prüfen, ob es zu /etc/univention/templates/files/etc/dhcp/dhcpd.conf eine .dpkg-dist gibt. Hier müssen Sie dann die neue Vorlage (die dhcpd.conf.dpkg-dist) aktivieren (in dhcpd.conf umbenennen) und die manuell gemachten Anpassungen in der neuen dhcpd.conf wieder anwenden.
Anschließend die Konfigurationsdatei neu erzeugen lassen: ucr commit /etc/dhcp/dhcpd.conf
Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Configuration file errors encountered -- exiting
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
The Template dosn’t changed. I commented out only in the final dhcpd.conf the log output (ldap-debug-file).
alright, so the first command (the ldapsearch …) likely works because there’s an entry for ucs.agele.local in /etc/hosts pointing to the correct IP address. However, the second command (host …) doesn’t evaluate that file (on purpose).
That DNS record must exist for the domain to function properly. So let’s see why it doesn’t. Please post the output of the following commands:
ip -4 a
ucr get dns/backend
univention-ldapsearch -LLL -oldif-wrap=no relativedomainname=$(hostname) dn arecord
univention-s4search --show-binary --cross-ncs "(&(objectclass=dnsnode)(name=$(hostname)))"
# ip -4 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
3: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
inet 192.168.1.1/24 brd 192.168.1.255 scope global br0
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
inet 172.17.42.1/16 scope global docker0
valid_lft forever preferred_lft forever
Looks like your host queries the DNS server at 192.168.1.254 which I assume is your router (not having any clue about your local domain).
It should ask the proper DNS servers for the domain: 192.168.1.1
In general all UCS systems that contain their own LDAP server (DC Master, DC Backup, DC Slave) should have themselves set as their nameserver1, not an external machine.