Dnsmasq dead after ns7 unattended installation

Just did unattended install and did login at console.

It seems the domain name is empty and this causes dnsmasq to choke. Hostname is localhost.

If dnsmasq is stopped all names resolutions fail!

However starting FirstConfigWiz the displayed host name is localhost.localdomain. At the end the first configuration wizard fixes the problem. Therefore it is quite subtle…

    # journalctl -u dnsmasq
-- Logs begin at Tue 2016-07-19 10:18:30 UTC, end at Tue 2016-07-19 11:02:26 UTC. --
Jul 19 10:18:50 localhost systemd[1]: Started DNS caching server..
Jul 19 10:18:50 localhost systemd[1]: Starting DNS caching server....
Jul 19 10:18:50 localhost dnsmasq[837]: dnsmasq: error at line 23 of /etc/dnsmasq.conf
Jul 19 10:18:50 localhost systemd[1]: dnsmasq.service: main process exited, code=exited, status=1/FAILURE
Jul 19 10:18:50 localhost systemd[1]: Unit dnsmasq.service entered failed state.
Jul 19 10:18:50 localhost systemd[1]: dnsmasq.service failed.
Jul 19 11:00:45 neth13.nethesis.it systemd[1]: Started DNS caching server..
Jul 19 11:00:45 neth13.nethesis.it systemd[1]: Starting DNS caching server....
Jul 19 11:00:45 neth13.nethesis.it dnsmasq[1696]: started, version 2.66 cachesize 4000
Jul 19 11:00:45 neth13.nethesis.it dnsmasq[1696]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth
Jul 19 11:00:45 neth13.nethesis.it dnsmasq-tftp[1696]: TFTP root is /var/lib/tftpboot
Jul 19 11:00:45 neth13.nethesis.it dnsmasq[1696]: using nameserver 8.8.8.8#53
Jul 19 11:00:45 neth13.nethesis.it dnsmasq[1696]: read /etc/hosts - 2 addresses

…line 23 of dnsmasq.conf is domain=.

The system has only one NIC, configured as green bootproto DHCP.

1 Like

unable to reproduce (on a VM).

What’s the host name? Can you see it changing by looking at /var/log/messages?

Unattended install and login (FirstConfWiz not accessed)

/var/log/messages
Jul 20 07:21:11 localhost systemd[1]: Set hostname to < localhost.localdomain>.
Jul 20 07:21:15 localhost systemd: Set hostname to < localhost.localdomain>.
Jul 20 07:21:40 localhost dnsmasq[1263]: started, version 2.66 cachesize 4000
Jul 20 07:21:42 localhost systemd: Starting The Apache HTTP Server…
Jul 20 07:21:43 localhost httpd: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
Jul 20 07:22:00 localhost httpd: AH00557: httpd: apr_sockaddr_info_get() failed for localhost.localdomain
Jul 20 07:22:00 localhost httpd: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress this message
Jul 20 07:22:05 localhost httpd: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
Jul 20 07:22:07 localhost systemd: Starting Login Prompts.

[root@localhost ~]# hostname
localhost.localdomain

If I login and access dnsmasq.conf promptly the file seems to not be expanded (or so I guess, I remember reading a line with the word netizen). After some seconds it is:

/etc/dnsmasq.conf
domain=localdomain

Another try:

1 Like

What is your NIC configuration? Did it get a static IP or DHCP?

BOOTPROTO=dhcp

1 Like

I start suspecting a race condition between nethserver-system-init and network units…

1 Like

:upside_down:

1 Like

Opened a bug (with possible solution)