OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 21.7 Legacy Series »
  • Unbound DNS: Internal devices resolving to gateway or WAN IP address
« previous next »
  • Print
Pages: [1]

Author Topic: Unbound DNS: Internal devices resolving to gateway or WAN IP address  (Read 699 times)

lshantz

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 2
    • View Profile
Unbound DNS: Internal devices resolving to gateway or WAN IP address
« on: December 06, 2021, 07:44:38 pm »
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.

Logged

lshantz

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 2
    • View Profile
Re: Unbound DNS: Internal devices resolving to gateway or WAN IP address
« Reply #1 on: December 07, 2021, 06:00:55 pm »
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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 21.7 Legacy Series »
  • Unbound DNS: Internal devices resolving to gateway or WAN IP address
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2022 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2