CNAMEs not going through view

George Thessalonikefs george at nlnetlabs.nl
Mon Dec 27 17:55:50 UTC 2021


Hi Jan,

It is not clear to me how you have set up Unbound.
Can you provide a configuration snippet of how things look currently?

Just to note from what you said that you can't combine the global local 
data with view local data.

If there is a local zone from a view then that is used. If there is no 
zone in the view and view-first is enabled, then Unbound will look for 
the zone in the global local data.

Best regards,
-- George

On 20/12/2021 20:02, Jan Palus via Unbound-users wrote:
> Hi,
> 
> I have an unbound instance that serves as DNS for small local network
> (let's assume it's example.com domain). One of the servers (let's call
> it server) is accessed by either IPLAN or by IPVPN depending on what's
> the source of a query. The IP is changed with view for
> server.example.com however other CNAMEs in zone file do not seem to go
> through that view. So ie if I have an "alias IN CNAME server", then
> alias.example.com resolves to IPLAN despite query coming from VPN. Is
> there a way to make CNAMEs resolutions go through view as well?
> 
> Regards
> Jan


More information about the Unbound-users mailing list