Netgate SG-1000 microFirewall

Author Topic: Single DNS record and Wilcard DNS with DNS Resolver (Unbound)  (Read 103 times)

0 Members and 1 Guest are viewing this topic.

Offline Berobloom

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Single DNS record and Wilcard DNS with DNS Resolver (Unbound)
« on: January 16, 2018, 04:55:57 am »
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:

Code: [Select]
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?