Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCP serving old IP

    Scheduled Pinned Locked Moved DHCP and DNS
    15 Posts 2 Posters 664 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @Gradation7377
      last edited by johnpoz

      @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

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      G 2 Replies Last reply Reply Quote 0
      • G
        Gradation7377 @johnpoz
        last edited by

        That old reservation was deleted months ago, and the interface deleted also

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @Gradation7377
          last edited by johnpoz

          @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
          

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • G
            Gradation7377 @johnpoz
            last edited by Gradation7377

            @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?

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Gradation7377
              last edited by

              @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..

              reservations.jpg

              Did you move over to kea dhcpd maybe, and that is why your not seeing the reservation what was setup in isc dhcpd?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              G 1 Reply Last reply Reply Quote 0
              • G
                Gradation7377 @johnpoz
                last edited by Gradation7377

                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

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Gradation7377
                  last edited by

                  @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

                  resv.jpg

                  I would move back to isc dhcpd and figure out where you have the entry..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    Gradation7377 @johnpoz
                    last edited by Gradation7377

                    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

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @Gradation7377
                      last edited by johnpoz

                      @Gradation7377 look in the dhcp server settings in the xml - is the entry in there.

                      backup.jpg

                      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

                      reservation.jpg

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      G 2 Replies Last reply Reply Quote 0
                      • G
                        Gradation7377 @johnpoz
                        last edited by

                        Got it. It's there...Plus lots of others

                        Let me tidy this up and restore...

                        1 Reply Last reply Reply Quote 0
                        • G
                          Gradation7377 @johnpoz
                          last edited by

                          @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

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator @Gradation7377
                            last edited by

                            @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.

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.