1

DNSmasq status shows on Raspberry pi 4:

Jan 18 17:05:13 raspberrypi systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Jan 18 17:05:13 raspberrypi dnsmasq[1112]: dnsmasq: syntax check OK.
Jan 18 17:05:13 raspberrypi dnsmasq[1121]: started, version 2.80 cachesize 150
Jan 18 17:05:13 raspberrypi dnsmasq[1121]: DNS service limited to local subnets
Jan 18 17:05:13 raspberrypi dnsmasq[1121]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Jan 18 17:05:13 raspberrypi dnsmasq-dhcp[1121]: DHCP, IP range 192.168.0.100 -- 192.168.0.130, lease time 12h
Jan 18 17:05:13 raspberrypi dnsmasq[1121]: read /etc/hosts - 2 addresses
Jan 18 17:05:13 raspberrypi dnsmasq[1122]: Too few arguments.
Jan 18 17:05:13 raspberrypi systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

I am following the DNSmasq set up here. Nslookup and ping by host name on all the Windows and Linux clients suggest local DNSmasq nameservice is working.

The after <dnsmasq[1121]: read /etc/hosts> suggests a hosts file problem but it is just this :

127.0.0.1   localhost
127.0.1.1   raspberrypi

No changes were made to dnsmasq.conf. The only by default un-commented lines in it are :

hcp-mac=set:client_is_a_pi,B8:27:EB:*:*:*
dhcp-reply-delay=tag:client_is_a_pi,2

DNSmasq site specific commands are in /etc/dnsmasq.d/home.dns :

# General Configuration
domain-needed
bogus-priv
domain=xyz
dhcp-range=192.168.0.100,192.168.0.130,12h
dhcp-option=3,192.168.0.1
#
# Static IP Assignments
dhcp-host=90:A4:DE:8A:08:86,Onkyo,192.168.0.121
dhcp-host=D4:85:64:A8:EA:04,Manila,192.168.0.122

What might the too few arguments error be pointing at?

7
  • the last line says Started dnsmasq so, it's running - by the way I get the same error on all my pi's and I've made even less additions than you :p Commented Jan 19, 2021 at 21:01
  • The actual issue is something to do when openresolv is installed (which seems to be default on Raspberry Pi OS) - I have several servers all running debian, i.e. what Raspberry Pi OS is based on - and none of them have this "error" with dnsmasq - until I install openresolv Commented Jan 19, 2021 at 23:58
  • I see that openresolv can be uninstalled - but I don't know what I would be breaking.
    – Herondas
    Commented Jan 20, 2021 at 0:31
  • when you uninstall openresolv, you can copy /etc/resolv.conf/bak to /etc/resolv.conf - if the former exists - otherwise, you just edit /etc/resolv.conf with entries appropriate to your needs - e.g. I have google nameserver entries in mine nameserver 8.8.8.8 and nameserver 8.8.4.4 - though on the pi, I also have nameserver 192.168.23.1 before the google ones - where 192.168.23.1 is my router address Commented Jan 20, 2021 at 2:54
  • What is the specific problem? I can't see any error message. The message you are worry about isn't marked as error. dnsmasq has exit status 0 (ok).
    – Ingo
    Commented Jan 20, 2021 at 22:34

1 Answer 1

2

It seems that the Too few arguments is not a problem and can be ignored.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.