Serving local subdomains

ZackDev zackdev at
Wed Feb 1 17:16:59 UTC 2023

Hello there,

imho the difference is in the 'typetransparent' declaration. While
'transparent' only looks at the zone, 'typetransparent' also takes the
type into consideration.

Anyways, I'm glad it worked.



On 2/1/23 17:36, Neil Romig wrote:
> Zack,
> My mistake!
> local-zone: "" typetransparent does exactly what is needed. DNS is a bit of a headache for a novice like me...
> I do notice a difference between output of dig (shows desired results - the internal ip for subdomains and external for domain/website)
> and of unbound-host (always returns the external ip) - another mystery to solve.
> Regards,
> Neil.
> P.S A bit nervous about top-posting, but I see it is fairly common on this list..
> On Wed, 2023-02-01 at 17:16 +0100, Bastian Maier wrote:
>> Alright, thanks for the feedback.
>> Greetings,
>> Zack
>> On 2/1/23 15:55, Neil Romig wrote:
>>> Zack,
>>> Doesn't work (I tried that already), and anyway the docs say if no local-zone is present when local-data used, then a transparent local-zone is created by default.
>>> Neil.
>>> On Wed, 2023-02-01 at 15:05 +0100, ZackDev wrote:
>>>> Hello there,
>>>> I'm not 100 percent sure if this works, but try adding a local zone like this to the config.
>>>> local-zone: "" typetransparent
>>>> This will directly return queries matching local-data and type from your config, if local-data and type doesnt match config, unbound will query upstream dns servers.
>>>> Hope this helps.
>>>> On 2/1/23 14:08, Neil Romig via Unbound-users wrote:
>>>>> Trying to migrate from dnsmasq to unbound, I have a problem getting the setup to match.
>>>>> I have domain which is hosted by our website service provider so I can browse to (no www needed). I also run a web server locally for various in-house systems which
>>>>> are
>>>>> subdomains of - e.g, etc.
>>>>> If I try to use config lines such as:
>>>>> local-data: " IN A"
>>>>> local-data:  " IN MX 1"
>>>>> local-data: " IN A"
>>>>> local-data-ptr: ""
>>>>> I then cannot browse to and I am currently having to add a config line containing the actual IP address of the website at our hosting provider:
>>>>> local-data: " IN A <website ip-address>"
>>>>> Can anyone help me get this setup the right way?
>>>>> Neil.

More information about the Unbound-users mailing list