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

    A valid hostname is specified, but the domain name part should be omitted

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 3 Posters 6.7k 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.
    • S
      sashikanth
      last edited by

      Hi All,

      When i try to assign any static ip with DHCP server, i am getting this error message:

      "A valid hostname is specified, but the domain name part should be omitted".

      Earlier i was able to do this, from last update,it is giving error. Please help me.

      ![DHCP Error.PNG](/public/imported_attachments/1/DHCP Error.PNG)
      ![DHCP Error.PNG_thumb](/public/imported_attachments/1/DHCP Error.PNG_thumb)

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

        what exactly are you putting in?

        It says right under the hostname part in static mapping not to include the domain name

        "Name of the host, without domain part."

        You can put in an alternate domain name farther down in the form

        staticmapping.png
        staticmapping.png_thumb
        domainname.png
        domainname.png_thumb

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          sashikanth
          last edited by

          I am just giving only host name there, not including Domain name, it is not taking any thing there.
          Even if i give a simple name also,it is not accepting and getting the same error.

          ![static error.PNG](/public/imported_attachments/1/static error.PNG)
          ![static error.PNG_thumb](/public/imported_attachments/1/static error.PNG_thumb)

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            Edit: nevermind, looked at that way too quickly. It's correct as-is.

            1 Reply Last reply Reply Quote 0
            • S
              sashikanth
              last edited by

              I tried giving all lower cases also, but still getting the same error. Please check the screen shot once.

              ![error dhcp.PNG](/public/imported_attachments/1/error dhcp.PNG)
              ![error dhcp.PNG_thumb](/public/imported_attachments/1/error dhcp.PNG_thumb)

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                Actually I looked at that way too quickly, it was correct as-is, it's not caps-sensitive.

                What version is that? Going back to 2.1.x code, it checks whether it contains a . and gives that message if it does. In 2.2.x and newer, just that it contains only valid characters for a hostname without domain. That content passes the check in both cases.

                1 Reply Last reply Reply Quote 0
                • S
                  sashikanth
                  last edited by

                  This is 2.2.2 Release.

                  version.PNG
                  version.PNG_thumb

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmb
                    last edited by

                    The check in 2.2.2 matches that as well. Make sure there aren't spaces or any other characters than the text there.

                    1 Reply Last reply Reply Quote 0
                    • S
                      sashikanth
                      last edited by

                      I have checked it, earlier i was able to create them. Is there any configuration files i need to check ?
                      Few other posts are stating that we need to edit "services_dhcp_edit.php" in /usr/loca/www.

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

                        I never understand why people do not update..  2.2.2 is over a year old.. There were 4 more releases in the 2.2.x line to fix security, bugs and add features.  Why are you not atleast not on 2.2.6?

                        Pretty much anytime you call for support to any major player cisco, juniper, microsoft, etc etc..  Are you on the latest version/patches.. And really do not like supporting you until your current.

                        You sure there is no space on the end of the name?

                        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.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          @sashikanth:

                          Few other posts are stating that we need to edit "services_dhcp_edit.php" in /usr/loca/www.

                          From people who had . in the hostname, from several years ago before there was a domain field and they wanted sub-domains. There is no need to edit anything.

                          1 Reply Last reply Reply Quote 0
                          • S
                            sashikanth
                            last edited by

                            Hi Johnpz,

                            We have updated to the latest version, it is observed that after updating only we are getting this issue, So that we reinstalled the older version manually. Still getting the same issue with the older version also now.

                            We are sure there are no spaces in the hostname, checked many times.

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