Maintained by: NLnet Labs

[Unbound-users] Can't get CNAME entries to resolve

M. David Peterson
Tue Mar 3 03:36:16 CET 2009

I've been playing around with Unbound and thus far have been /very/
impressed with its performance.  In fact, the only thing currently
preventing me switching our primary and secondary DNS from BIND to Unbound
is the fact that I can't seem to figure out how to get CNAME resolution to
work properly.  The documentation makes reference to using a stub-zone to
gain CNAME support, but it's not obvious what that means exactly. I've
played around with different stub-zone configurations but as of yet haven't
found that seems to work correctly.

The only example I've found that highlights a CNAME entry as part of the
Unbound config file is located at > <
Unfortunately the provided example -- a sample of which is provided inline
below -- doesn't work.  Can someone steer me in the right direction as far
as how to go about referencing both an internal and external CNAME alias
which Unbound will then resolve when requests for the configured sub-domain
are made?

Thanks in advance for your help!

local-zone: "" static
        local-data: " 86400 IN NS"
        local-data: " 86400 IN NS"
        local-data: " 86400 IN SOA 2008052201 28800 7200 604800 86400"
        local-data: " 86400 IN A"
        local-data: " 86400 IN CNAME"
        local-data: " 86400 IN A"
        local-data: " 86400 IN MX 10"
        local-data: " 86400 IN TXT v=spf1 a mx ~all"


M. David Peterson
Co-Founder & Chief Architect, 3rd&Urban, LLC
Email: m.david at | m.david at
Mobile: (206) 999-0588 | | |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>