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

    Hostnames don't resolve without local domain

    Scheduled Pinned Locked Moved General pfSense Questions
    13 Posts 7 Posters 3.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.
    • emammadovE
      emammadov
      last edited by emammadov

      Hi,

      If user computer gets ip address via dhcp, then it can resolve hostname of other computer or server (for example: fileserver). But if user manually adds ip address into his computer, then he can't resolve the server hostname, he has to add .localdomain (fileserver.localdomain) to resolve.
      We are using DNS Resolver. DNS Query Forwarding, DHCP Registration and Static DHCP are enabled in DNS Resolver. What should I do to solve it?

      Elvin

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That's how it's supposed to work. Either query by the full host name or be in the same domain so it uses that by default if you don't specify one.

        Steve

        1 Reply Last reply Reply Quote 0
        • M
          marvosa
          last edited by marvosa

          It works on your DHCP clients because the dhcp server is providing a DNS suffix to your clients. For statically configured clients, if you don't have a domain to join, then you will need to add the DNS suffix manually on each client:

          2019-03-27 18_12_37-Domain_suffix.png

          Otherwise, you will have to do lookups via FQDN.

          So outside of implementing AD or an AD equivalent, you basically have 4 options to achieve your objective (only two of which are reasonable IMO):

          1. Manually add a DNS suffix to each statically assigned client
          2. Change all static clients to DHCP and use DHCP static mappings instead of configuring static IP's.
          3. If you have access to MS Server, you could deploy a WINS server, add the WINS server to your DHCP scope and configure the WINS server on all your static clients. However, you would be reverting back to a deprecated protocol developed in the 80's and relying on NetBIOS instead of DNS. I don't really consider this an effective option, but since it would technically work, I just threw it out there. ;)
          4. Manually edit the etc\hosts file on each device. Which in this day and age is just as absurd as running a WINS server... LoL
          1 Reply Last reply Reply Quote 0
          • emammadovE
            emammadov
            last edited by

            Thank you very much.

            Elvin

            1 Reply Last reply Reply Quote 0
            • KnoxsonK
              Knoxson Banned
              last edited by

              Finally I found some useful information.

              1 Reply Last reply Reply Quote 0
              • BerryHornB
                BerryHorn
                last edited by

                To be honest I didn't understood anything that you wrote there, but I need a little bit of help.

                JKnottJ 1 Reply Last reply Reply Quote 0
                • JKnottJ
                  JKnott @BerryHorn
                  last edited by

                  @BerryHorn

                  Perhaps I'm missing something, but it might help if you mentioned what your problem is.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

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

                    can almost promise you those are spammers @JKnott

                    But until they actually spam something, not really right to delete and ban..

                    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

                    BerryHornB stephenw10S 2 Replies Last reply Reply Quote 1
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Yup. Spam incoming....

                      1 Reply Last reply Reply Quote 0
                      • BerryHornB
                        BerryHorn @johnpoz
                        last edited by

                        @johnpoz I am not a spammer but thank you that you take care of it.

                        1 Reply Last reply Reply Quote 0
                        • BerryHornB
                          BerryHorn @JKnott
                          last edited by BerryHorn

                          @JKnott Thank you my friend, I found someone that already fixed everything. Appreciate that!

                          1 Reply Last reply Reply Quote 0
                          • stephenw10S
                            stephenw10 Netgate Administrator
                            last edited by

                            What was your problem, if you're not a spammer?

                            What was the solution?

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator @johnpoz
                              last edited by

                              @johnpoz Ha, that took a while. 😉

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