Quantcast
Viewing all articles
Browse latest Browse all 60861

Re: dnsmasq and CNAME

options CNAME in Dnsmasq is kinda restrictive in use. You have to satisfy one of the following conditions for a CNAME record to be valid:

 

cname=<cname>,<target>[,<TTL>]
There are significant limitations on the target; it must be a DNS name which is known to dnsmasq from /etc/hosts (or additional hosts files), from DHCP, from --interface-name or from another --cname. If the target does not satisfy this criteria, the whole cname is ignored. The cname must be unique, but it is permissable to have more than one cname pointing to the same target.

 

By default EdgeOS uses a different daemon (Wide-DHCPD ?) to manage DHCP. It's possible to roll DHCP function into Dnsamsq. Then CNAME will work as you've attempted.

 

Alternatively, you can try redefining "<ip address> router.hika1" in a text file and save in /config/user-data. Pass the file to Dnsmasq as option "addn-hosts" with

 

set service dns forwarding options addn-hosts=/config/user-data/hosts.dnsmasq

 

Let us know if this works. Personally I run a dedicate DNS forwarder outside EdgeOS.


Viewing all articles
Browse latest Browse all 60861

Trending Articles