Unbound DNS: Internal devices resolving to gateway or WAN IP address

Started by lshantz, December 06, 2021, 07:44:38 PM

Previous topic - Next topic
This is a strange one and I know I shot myself in the foot, but not sure how to unwind it.

I was having trouble with all of these stupid devices that have hard coded DNS entries and fail to reach out since    I forced all DNS queries to my unbound. I even have a Chinese camera if it can't phone home it will shut itself off. So... I read where I can redirect these devices to my unbound DNS server. Great! Well not so fast.

I set it up following the instructions and now I get constant "the DNS query name does not exist" If I do an Nslookup  or ping, it is resolving to the WAN IP address, or if I use the FQDN it will report back the gateway address. NOT the device IP address. It is probably an easy fix, but I'm stumped.


So it seems that some devices show up with correct IP addresses and some do not. I'm still trying to filter through what I'm seeing, but an nslookup for a device returns:
nslookup xx
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   xx
Address: WAN address here, instead of the device IP.

I am wondering if I need to change The Unbound/General/localzonetype to something other than transparent.