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

    The hostname cannot end with a hyphen

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    4 Posts 2 Posters 1.4k 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.
    • T
      townsenk
      last edited by

      On services:DHCP static mapping, If you enter a Hostname with a Hyphen anywhere it will reject it displaying this message

      "The hostname cannot end with a hyphen according to RFC952"

      I can understand why it would reject a name such as "clientpc-" but should it reject names like "client-pc" as well? I thought the latter was acceptable.

      Thank You

      1 Reply Last reply Reply Quote 0
      • E
        Efonnes
        last edited by

        I'll take a look at it.  Probably has an improperly formatted regular expression for doing the match.  I recall seeing the commit that did this, but didn't really think anything of it at the time.

        1 Reply Last reply Reply Quote 0
        • E
          Efonnes
          last edited by

          Fixed

          If you want to apply the change yourself now, make the change shown here: https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/392687e5633a663c1297363ff2d5d8e8f15298d7

          1 Reply Last reply Reply Quote 0
          • T
            townsenk
            last edited by

            Thank You, I made the changes and it resolved the issue.

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