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

    Dhcpleases: bad name

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 4 Posters 2.6k 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.
    • B Offline
      Bandalo
      last edited by

      I keep getting these errors in my logs:

      dhcpleases: bad name in /var/dhcpd/var/db/dhcpd.leases

      I'm fairly sure this is being caused by a TP Link HS110 power outlet I'm using to control my holiday lights outside.  The hostname for the outlet is "HS100(US)".  I think the parenthesis are causing the problem, but there's no way on this device to change the host name.

      Is there a way to get pfSense to ignore this error and keep it from filling my log?  Is this error going to cause any other problems in the long run if I just ignore it?

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN Offline
        NogBadTheBad
        last edited by

        Maybe giving it a DHCP Static Mapping using the mac address and give it a name of HS100 might work.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

          Yeah for sure ( ) in a hostname is not a good idea.. Should prob write a nasty gram to them about that.  I looked those up - and I might have to pick one up for xmas season lights.  I agree with NogBadtheBad static with setting hostname should get rid of the errors.

          So there was newer rfc that changed host name restrictions where you could use a number as first character, etc. 1123 I do believe, Im pretty sure your still not suppose to use anything other than numbers, letters and - in the actual hostname.

          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
          • B Offline
            Bandalo
            last edited by

            @NogBadTheBad:

            Maybe giving it a DHCP Static Mapping using the mac address and give it a name of HS100 might work.

            I gave this a shot last night, and it didn't seem to work.  Same error popped up.

            1 Reply Last reply Reply Quote 0
            • B Offline
              Bandalo
              last edited by

              @johnpoz:

              Yeah for sure ( ) in a hostname is not a good idea.. Should prob write a nasty gram to them about that.  I looked those up - and I might have to pick one up for xmas season lights.  I agree with NogBadtheBad static with setting hostname should get rid of the errors.

              So there was newer rfc that changed host name restrictions where you could use a number as first character, etc. 1123 I do believe, Im pretty sure your still not suppose to use anything other than numbers, letters and - in the actual hostname.

              Yeah, I got 2 of them for super cheap over the summer, about $12/each.  I haven't seen the host name problem cause any actual routing problems yet.  It gets an IP address, and right now the only problem I'm really seeing is the errors in the DHCP logs.  I'm just not sure if this will cause any errors in the long run other than that.

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

                $12 you got the 110 for 12??  That is freaking cheap!!  The 110 does monitoring show you how much juice being used, while the 100 doesn't do monitoring from my understanding..

                Was there some rebate or groupon or something.  I would for sure pick up a few for that price.

                How often do you get the error?  What is your dhcp lease time?  Other than log spam I don't see how it would cause too much of an issue.

                So did you delete the old lease from the leases file.. Doing the static setting and setting specific hostname should remove that issue.  I guess I could try and duplicate it with a host, etc..

                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
                • B Offline
                  Bandalo
                  last edited by

                  @johnpoz:

                  $12 you got the 110 for 12??  That is freaking cheap!!  The 110 does monitoring show you how much juice being used, while the 100 doesn't do monitoring from my understanding..

                  Was there some rebate or groupon or something.  I would for sure pick up a few for that price.

                  How often do you get the error?  What is your dhcp lease time?  Other than log spam I don't see how it would cause too much of an issue.

                  So did you delete the old lease from the leases file.. Doing the static setting and setting specific hostname should remove that issue.  I guess I could try and duplicate it with a host, etc..

                  Well, I got them from Amazon on Prime Day.  I wasn't even looking for that kind of device, but for that price I couldn't pass up picking them up to experiment with.  They make great timers for running holiday lights outside, but haven't really found another use around the house.

                  I didn't delete the old leases file when I set the static IP for the device.  I can try that this evening and see if it'll correct the error.  I'm fairly sure it was popping into the log about twice an hour.

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

                    well what is your lease time?  If it was renewing its lease then yeah prob show back up in the lease 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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Bandalo
                      last edited by

                      @johnpoz:

                      well what is your lease time?  If it was renewing its lease then yeah prob show back up in the lease file.

                      The change to a static reservation with a different host name fixed the problem.  I just had to delete the old leases file first to clear out the error.  Once the new file was generated, the problem seems to have cleared up.

                      Thanks for the help everyone!

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        akishore
                        last edited by

                        This is exactly what I was looking for, but can someone mention how exactly you went about deleting the dhcpd.leases file? I have opened it in the editor, so should I just clear out the whole file and save it?

                        I also have a TP Link plug with that same name and it floods the log file with the same error message all the time.

                        Thanks in advance!

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

                          you can just delete the whole file if you want.  Or delete the leases from the gui..

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.