Localise queries

José Ramón Muñoz Pekkarinen koalinux at gmail.com
Sat Aug 14 09:30:00 UTC 2021


	Hi,

	I have unbound setup in my openwrt router, defining
it with the minimal config to define dns related stuff in unbound.conf,
that is, in /etc/config/unbound I just define the following lines:

config unbound 'ub_main'
        option manual_conf '1'

	In unbound.conf I define a local domain like:

        local-zone: router.mydomain.com. static
        domain-insecure: router.mydomain.com
        private-domain: router.mydomain.com

	And some local data to point to the router:

local-data: "router.mydomain.com. IN A 192.168.1.1 192.168.2.1 192.168.3.1 
fd01:5f3b:820e::1"
local-data: "gw.router.mydomain.com A 192.168.1.1  192.168.2.1 192.168.3.1 
fd01:5f3b:820e::1"

	When I connect to the wifi(192.168.2.0/24), and I ping
gw.router.mydomain.com, the answer is showing 192.168.1.1, instead of
192.168.2.1. Somehow, I fail to find the option to produce this behaviour,
can anybody help?

	Thanks!

	José Pekkarinen.




More information about the Unbound-users mailing list