Hi all, I am trying to get dnsmasq on my raspberry pi and its giving me quite the headache. It fails to load at boot giving me this error message.
$this->bbcode_second_pass_code('', '$ sudo systemctl status dnsmasq
dnsmasq.service - A lightweight DHCP and caching DNS server
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 01:00:25 BST; 43 years 5 months ago
Docs: man:dnsmasq(8)
Process: 131 ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file (code=exited, status=2)
Process: 125 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=0/SUCCESS)
Jan 01 01:00:25 alarmpi systemd[1]: dnsmasq.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 01 01:00:25 alarmpi systemd[1]: Failed to start A lightweight DHCP and caching DNS server.
Jan 01 01:00:25 alarmpi systemd[1]: Unit dnsmasq.service entered failed state. ')
$this->bbcode_second_pass_code('', '$ sudo cat /var/log/daemon.log|grep dnsmasq
Jun 11 21:38:16 alarmpi dnsmasq[231]: started, version 2.66 cachesize 300
Jun 11 21:38:16 alarmpi dnsmasq[231]: compile time options: IPv6 GNU-getopt DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth
Jun 11 21:38:16 alarmpi dnsmasq[231]: DBus support enabled: connected to system bus
Jun 11 21:38:18 alarmpi dnsmasq[231]: reading /etc/resolv-dnsmasq.conf
Jun 11 21:38:18 alarmpi dnsmasq[231]: using nameserver 127.0.0.2#53
Jun 11 21:38:18 alarmpi dnsmasq[231]: read /etc/hosts - 2 addresses
Jun 11 21:38:18 alarmpi dnsmasq[229]: dnsmasq: syntax check OK.
Jan 1 01:00:20 alarmpi [ 3.221377] systemd[1]: [/usr/lib/systemd/system/dnsmasq.service:1] Assignment outside of section. Ignoring.
Jan 1 01:00:20 alarmpi [ 3.221538] systemd[1]: [/usr/lib/systemd/system/dnsmasq.service:2] Assignment outside of section. Ignoring.
Jan 1 01:00:20 alarmpi [ 3.221666] systemd[1]: [/usr/lib/systemd/system/dnsmasq.service:3] Assignment outside of section. Ignoring.
Jan 1 01:00:20 alarmpi [ 3.221792] systemd[1]: [/usr/lib/systemd/system/dnsmasq.service:4] Assignment outside of section. Ignoring.
Jan 1 01:00:07 alarmpi dnsmasq[129]: failed to create listening socket for 192.168.1.15: Cannot assign requested address
Jan 1 01:00:24 alarmpi dnsmasq[129]: FAILED to start up
Jan 1 01:00:24 alarmpi systemd[1]: dnsmasq.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 1 01:00:24 alarmpi systemd[1]: Failed to start dnsmasq.service.
Jan 1 01:00:24 alarmpi systemd[1]: Unit dnsmasq.service entered failed state.
Jan 1 01:00:24 alarmpi dnsmasq[120]: dnsmasq: syntax check OK.
Jan 1 01:00:24 alarmpi dnsmasq[129]: dnsmasq: failed to create listening socket for 192.168.1.15: Cannot assign requested address
Jan 1 01:00:07 alarmpi dnsmasq[131]: failed to create listening socket for 192.168.1.15: Cannot assign requested address
Jan 1 01:00:25 alarmpi dnsmasq[131]: FAILED to start up
Jan 1 01:00:25 alarmpi systemd[1]: dnsmasq.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 1 01:00:25 alarmpi systemd[1]: Unit dnsmasq.service entered failed state.
Jan 1 01:00:25 alarmpi dnsmasq[125]: dnsmasq: syntax check OK.
Jan 1 01:00:25 alarmpi dnsmasq[131]: dnsmasq: failed to create listening socket for 192.168.1.15: Cannot assign requested address')
But it will start up once I am logged in
$this->bbcode_second_pass_code('', '$ sudo systemctl start dnsmasq
$ sudo systemctl status dnsmasq
dnsmasq.service - A lightweight DHCP and caching DNS server
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled)
Active: active (running) since Wed 2013-06-12 07:13:52 BST; 4s ago
Docs: man:dnsmasq(8)
Process: 406 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 409 (dnsmasq)
CGroup: name=systemd:/system/dnsmasq.service
ââ409 /usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
Jun 12 07:13:52 alarmpi dnsmasq[406]: dnsmasq: syntax check OK.
Jun 12 07:13:52 alarmpi systemd[1]: Started A lightweight DHCP and caching DNS server.
Jun 12 07:13:52 alarmpi dnsmasq[409]: started, version 2.66 cachesize 300
Jun 12 07:13:52 alarmpi dnsmasq[409]: compile time options: IPv6 GNU-getopt DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth
Jun 12 07:13:52 alarmpi dnsmasq[409]: DBus support enabled: connected to system bus
Jun 12 07:13:52 alarmpi dnsmasq[409]: reading /etc/resolv-dnsmasq.conf
Jun 12 07:13:52 alarmpi dnsmasq[409]: using nameserver 127.0.0.2#53
Jun 12 07:13:52 alarmpi dnsmasq[409]: read /etc/hosts - 2 addresses')
Any Ideas on what could be wrong?