#1141889 dnsmasq: discrepancies between NTP options in config and variables

#1141889#5
Date:
2026-07-12 09:49:43 UTC
From:
To:
I have the following in dnsmasq.conf to test dhcpcd's ability to receive all 3 NTP options:

dhcp-option=option:ntp-servers,162.159.200.1,162.159.200.123
dhcp-option=option6:sntp-servers,[2606:4700:f1::1],[2606:4700:f1::123]
dhcp-option=option6:ntp-server,time.cloudflare.com

dnsmasq complains of a bad dhcp-option at those lines.

There also seems to be discrepancies between what dhcpcd and dnsmasq expect as variable names (singular or plural):

sudo dhcpcd --variables| grep ntp
unknown option: sntp_servers
unknown option: ntp_server
042 ntp_servers                         	 array ipaddress
071 nntp_server                         	 array ipaddress
00031 sntp_servers                      	 array ip6address
00056 ntp_server                        	 encap

Given this I'm also including Roy (dhcpcd upstream) in CC. It would of course be desirable for both software to use RFC-compliant names.

Cheers!
Martin-Éric