Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Single DNS record and Wilcard DNS with DNS Resolver (Unbound)

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 432 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.
    • B
      Berobloom
      last edited by

      I'm trying to get a combination of a wildcard DNS record and a single DNS record to work but instead nothing resolves anymore.
      For example I want to accomplish this:

      host1.example.com > 192.168.35.4
      *.example.com > 192.168.35.10

      So all DNS requests to example.com that doesn't match host1 needs to go to 192.168.35.10.
      I got this to work on DNS Forwarder but not with DNS Resolver.

      What I have tried:

      
      local-zone: "example.com" redirect
      local-data: "example.com 3600 IN A 192.168.35.10"
      
      

      The code above works.

      Adding then a single DNS record: host1.example.com in DNS overrides results in a non resolving DNS server.
      Somebody has an idea? Do I miss something?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.