Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    DNS CNAME records posible with unbound?

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 12.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      seanmcb
      last edited by

      Hello,

      Is it posible to add CNAME (alias) entries with pfsense's unbound?  I've searched and it seems the answer is 'no' but I wanted to check here.

      Thanks,

      Sean

      1 Reply Last reply
      Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Huh. That's the "Additional Names for this Host" in "Host Overrides". Kinda hard to miss.

        1 Reply Last reply
        Reply Quote 0
        • K
          kpa
          last edited by

          No, it's not going to work with Unbound because it's not an authoritative name server and can not expand the CNAMEs. You would need BIND or equivalent for that. Use the host overrides if that solves your problem as noted by dok above.

          1 Reply Last reply
          Reply Quote 0
          • S
            seanmcb
            last edited by

            Thanks both for your replies.

            So I have a pretty vanilla split DNS scenario.  I currently run BIND on a Mac Mini and am looking to move that task to my pfsense box.  My current setup has one A record per server and CNAMES for some of them.  So for example a web server named "borg" with a CNAME of "www".  I suppose this "Additional Names for this Host" thing just uses additional A records?  I guess that would work just as well.

            But what about say an MX record?  Or PTR record?

            1 Reply Last reply
            Reply Quote 0
            • K
              kpa
              last edited by

              You can override MX, PTR, SRV and even SOA records with Unbound, no problem (not exposed trough the GUI in pfSense but you can use custom options). What I wrote above is bit incorrect. The reason the CNAME records won't work as host overrides is because they have to be resolved with an additional query either to the upstream forwarder or the authoritative server. A resolver like Unbound won't look at its own host overrides to resolve a CNAME, they have to be set in the authoritative server.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy