[Dnsmasq-discuss] syntax for cname= unclear
Geert Stappers
stappers at stappers.nl
Thu Sep 17 17:55:03 BST 2020
On Thu, Sep 17, 2020 at 03:19:20PM +0200, Olaf Hering wrote:
> The dnsmasq man page has no specific example for cname=, it is unclear
> what target really has to be. A more specific example exists for
> host-record=.
>
> With the config snippet below the cnames are not known.
> Commands like 'host cname1 $ip_of_dnsmasq_host' work,
Please elaborate.
> but 'host cname1.dnsdomain $ip_of_dnsmasq_host' returns NXDOMAIN.
What should have been the outcome?
> Is the used syntax for "cname=" correct?
>
> This happens with dnsmasq 2.78, which can not be easily upgraded.
>
> Thanks,
> Olaf
>
> log-facility=/var/log/dnsmasq.log
> interface=LAN
> cache-size=150
> domain=dnsdomain,172.16.0.0/16,local
> resolv-file=/etc/resolv.conf.dhclient-UPLINK
> conf-file=/path-to/host-records.conf
>
> host-record=hostname,hostname.dnsdomain,172.16.0.2,fd00:172:16::0323:45ff:feab:cdef
> dhcp-host=01:23:45:ab:cd:ef,set:hostname,hostname,216000
?
> cname=cname1,hostname
> cname=cname1.dnsdomain,hostname.dnsdomain
> cname=cname2,hostname
> cname=cname2.dnsdomain,hostname.dnsdomain
Groeten
Geert Stappers
--
Silence is hard to parse
More information about the Dnsmasq-discuss
mailing list