Creating CNAMEs

Any chance you can implement support for creating CNAMEs? Or how do you guys create CNAMEs in your setup?

This is default dnsmasq functionality (pihole-FTL = dnsmasq v2.81 + pihole features, such as regex, ...).
From the dnsmasq man:

--cname=<cname>,[<cname>,]<target>[,<TTL>] 
Return a CNAME record which indicates that <cname> is really <target>. There is a significant limitation on the target; it must be a DNS record which is known to dnsmasq and NOT a DNS record which comes from an upstream server. The cname must be unique, but it is permissible to have more than one cname pointing to the same target. Indeed it's possible to declare multiple cnames to a target in a single line, like so: --cname=cname1,cname2,target 
If the time-to-live is given, it overrides the default, which is zero or the value of --local-ttl. The value is a positive integer and gives the time-to-live in seconds. 

Simply create a file /etc/dnsmasq.d/cname.conf and enter your cname entries in the file, than run pihole restartdns

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.