Wrong IP for opnsense host

Started by Nikotine, April 23, 2024, 11:48:12 PM

Previous topic - Next topic
I've got a weird issue.
My laptop is connected to my main VLAN 10.25.9.x.
The opnsense router IP is 10.25.9.1.

Yet when I traceroute opnsense.home.example.com (redacted), I see a warning about multiple addresses and I see it uses 10.25.10.1.
niek@3cz4n3 ~ % traceroute opnsense.home.example.com         
traceroute: Warning: opnsense.home.example.com has multiple addresses; using 10.25.10.1
traceroute to opnsense.home.example.com (10.25.10.1), 64 hops max, 40 byte packets
1  *

That subnet is used by the wireguard wg0 interface.
Why isn't opnsense.home.example.com resolving to the normal 10.25.9.1?
Which setting should I be looking at, unbound?

as a starter: what gives

ip a

on your laptop? Is the laptop configured for wireguard?
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

By default a DNS lookup of "opnsense.my.do.main" returns all IP addresses of all interfaces local to OPNsense.

You can change this by

* Services > Unbound > General > Do not register system A/AAAA records
* Services > Unbound > Overrides - create an entry with the single IP address you prefer
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: chemlud on April 24, 2024, 10:19:39 AM
as a starter: what gives

ip a

on your laptop? Is the laptop configured for wireguard?

This is a Mac, it doesn't work.
ifconfig gives a whole lot of interfaces, none of which are for wireguard.
I connect to wireguard using the wireguard app.

Quote from: Patrick M. Hausen on April 24, 2024, 11:12:52 AM
By default a DNS lookup of "opnsense.my.do.main" returns all IP addresses of all interfaces local to OPNsense.

You can change this by

* Services > Unbound > General > Do not register system A/AAAA records
* Services > Unbound > Overrides - create an entry with the single IP address you prefer
Do I need both settings, or just one of them?

If you set the first, you will get no automatic IP address registration for "opnsense.my.do.main", so you probably want the second, too.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)