Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Unbound DNS returning DHCP4 host IP even with Override set
« previous
next »
Print
Pages: [
1
]
Author
Topic: Unbound DNS returning DHCP4 host IP even with Override set (Read 67 times)
Dultas
Newbie
Posts: 1
Karma: 0
Unbound DNS returning DHCP4 host IP even with Override set
«
on:
September 19, 2024, 07:46:18 am »
I'm in the process of migrating some servers to a different domain (changing from .net to .com internally) while doing this I need to stand up two instances with the same hostname but different domain names.
I have unbound registering DHCP4 Leases as well as DHCP static mappings. But I also have overrides for both host.domain.net and host.domain.com. And search domain is set to domain.net
server.domain.com was resolving to the WAN IP so I added an override for it so it would resolve to the LAN IP with no issues.
server.domain.net was resolving to the IPs of both server.domain.net (DHCP static) and server.domain.com (DHCP4 Lease) in order to try an correct this issue, since i still need to migrate data to .com I tried adding an override for server.domain.com. However this did not fix the issue. Ever though the override only has the IP address for the .net instance it is still returning both IPs. I have start and stopped unbound dozens of times ( Flush DNS Cache during reload = true) but it still continues to resolve to both IPs. I've flushed the cache on the machine I'm checking the DNS entries from without success either.
Looking for any ideas anyone might have on getting Unbound to actually respect the override.
Logged
dseven
Full Member
Posts: 108
Karma: 15
Re: Unbound DNS returning DHCP4 host IP even with Override set
«
Reply #1 on:
September 19, 2024, 10:19:00 pm »
I'm a bit confused about your "DHCP static" and "DHCP4 Lease".... do you have static mappings for some server instances, but others getting DHCP addresses from a pool and specifying their own preferred hostname? or...?
What is your system Domain Name? (System -> Settings -> General -> Domain Name)
What is the Domain Name for the DHCP service? (Services -> ISC DHCPv4 -> [interface] -> Domain Name)
What is the Domain Name for the Static Mappings? (it's an optional setting for each one)
Figuring out why you're getting two answers for server.domain.net is probably the place to start...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Unbound DNS returning DHCP4 host IP even with Override set