Unbound resolves the hostname of the router to all of its IP address

Started by dinguz, March 11, 2022, 04:23:51 PM

Previous topic - Next topic
I am having the difficulty that Unbound resolves the hostname of the router to all of its IP addresses, in random order, like this:


;; ANSWER SECTION:
xxx.ddns.net.       3600    IN      A       192.168.X.X
xxx.ddns.net.       3600    IN      A       77.164.X.X
xxx.ddns.net.       3600    IN      A       10.33.X.X


How do I get it to return only the external IP address?
The current behavior messes up local access to the router, because the 10.x.x.x network is only configured on the router, and not otherwise in the LAN.
In theory there is no difference between theory and practice. In practice there is.

Use BIND and manager your zones manually. That's what I do.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hi,

you can also try unbound views with a custom configuration:

br

Did you try an override?  That is what i did and it works fine.

Quote from: 5SpeedFun on March 12, 2022, 02:03:38 AM
Did you try an override?  That is what i did and it works fine.
I have tried that, and unfortunately it didn't work.
In theory there is no difference between theory and practice. In practice there is.