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

    Local hostnames don't resolve without local domain

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    6 Posts 3 Posters 2.1k 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.
    • I
      itsc
      last edited by

      Since upgrading to 2.4 local hostnames (either static or dhcp) don't resolve from anyone except pfsense itself without adding the local domain (localnet in my case). Any ideas what's going on? The same configuration used to work with 2.3.

      1 Reply Last reply Reply Quote 0
      • Raul RamosR
        Raul Ramos
        last edited by

        Have you DNS registration and Static DHCP checked in Services > DNS Resolve ?

        pfSense:
        ASRock -> Wolfdale1333-D667 (2GB TeamElite Ram)
        Marvell 88SA8040 Sata to CF(Sandisk 4GB) Controller
        NIC's: RTL8100E (Internal ) and Intel® PRO/1000 PT Dual (Intel 82571GB)

        1 Reply Last reply Reply Quote 0
        • I
          itsc
          last edited by

          Sorry, I should have specified that I am using DNS forwarder.

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

            They fixed that a while ago.. Its not correct to be able to resolve just host name, it needs to be fully qualified.  Just set your clients to use your domain as its search suffix.

            2.3.3 I think is when they fixed it for resolver
            https://redmine.pfsense.org/issues/6064

            comesbackfullyqual.png
            comesbackfullyqual.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.8, 24.11

            1 Reply Last reply Reply Quote 0
            • I
              itsc
              last edited by

              Thanks for the pointer. Should the clients automatically get it with the DHCP lease?

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

                They can sure.  Would depend on the OS that is the client.. Windows can be flaky for example.. But when you setup a machine you should setup its primary domain.  And you can also setup multiple search suffix, and can even set them specific per interface, etc.

                Its option 119 in dhcp, and while OS X and linux/bsd all support it - windows doesn't keep up with any sort of internet standards ;)  Their solution is to hand it out via group policy ;)

                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.