[Dnsmasq-discuss] Can 'addn-hosts' file include CNAME entries?

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Aug 27 12:25:11 BST 2020


On 26.08.20 22:15, Johnny Utahh wrote:
>Can 'addn-hosts' file include CNAME entries?

no. hosts files only contain IP-address mappings.

MAYBE the aliases in hosts files could be resolved as CNAME but I'm not sure
whether it's a good idea.


>If so, this would enable my team to have all local dns records in one 
>file (or directory, in case of 'hostsdir') rather than splitting CNAME 
>directives into .conf files, and the A/AAAA records into 'addn-hosts'. 
>A "one file" approach helps a dns-network designer to have a "single 
>view" of everything (in said network), if they want it.


-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton



More information about the Dnsmasq-discuss mailing list