DHCP serving old IP
-
Can't find a host override.
It both was and is a static DHCP reservation.
The 'server' (hostname) is assigned the correct IP through DHCP, but others trying to find 'server' are given the old IP roughly 50/50
-
@Gradation7377 so delete the old reservation.. and then restart unbound..
When you create a reservation, it sets that up in a file that unbound loads, but it only loads that on reload. you can view that is in there..
They will be in this file
# Static host entries include: /var/unbound/host_entries.conf
That is from the unbound.conf file
-
That old reservation was deleted months ago, and the interface deleted also
-
@Gradation7377 see my edit, make sure the entry is not in there. If your getting a wrong dns response - you have it somewhere that needs to be deleted.
You don't have your clients pointing to some other dns other than pfsense do you?
Unbound is only going to serve up what it was told to serve up.. So you have the entry either in that host file, or in host override, or even i the custom option box.. In the unbound gui page..
Maybe its left in yoru dhcp leases if your were registering them.. Look in this file
# dhcp lease entries include: /var/unbound/dhcpleases_entries.conf
-
@johnpoz said in DHCP serving old IP:
Static host entries
include: /var/unbound/host_entries.conf
Hmmm. It is in this file, not the dhcpleases one.
If I delete it, it comes back after restarting the service. The gui host override is empty, though
Is there a file somewhere for DHCP reservations? Something hidden there that keeps copying across on unbound restart?
-
@Gradation7377 the entries in that file are your dhcp reservations..
Maybe your missing the reservation in the gui, or its on the wrong interface is why you not seeing it.. If you look in your dhcp leases status, do you see it there?
example..
Did you move over to kea dhcpd maybe, and that is why your not seeing the reservation what was setup in isc dhcpd?
-
It's not in the list (It WAS a different interface and different subnet, but was since removed)
Is there a file version of this list somewhere?
I moved to kea dhcpd to try and fix this problem
-
@Gradation7377 moving to kea sure not going to fix registrations.. It doesn't even support them of yet, so you could have a disconnect..
https://docs.netgate.com/pfsense/en/latest/releases/23-09.html#rn-23-09-kea
I would move back to isc dhcpd and figure out where you have the entry..
-
Let me try and switch back, remove from the host file and restart unbound...
Still the same! Appears back once unbound is restarted/pfsense reboot
-
@Gradation7377 look in the dhcp server settings in the xml - is the entry in there.
Download that port of the config xml, and then open with your fav text editor - if in there you can remove and then restore that section of the config.
example - here is one of my reservations in the xml
-
Got it. It's there...Plus lots of others
Let me tidy this up and restore...
-
@johnpoz Happy day! That stopped it getting copied over and it now just finds a single IP
Thanks so much for your help on this! Legend!
Weird how it only started to be an issue since my version update
-
@Gradation7377 seems like something got disconnected between what was in the gui and what was in the xml.. Not sure how/why that could of happened.
But now and then a thread comes along where something is in the xml either mangled or that shouldn't be there..
Glad you got it sorted.