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

(solved) 2.5 connecting via hostname not working across interfaces

Scheduled Pinned Locked Moved DHCP and DNS
47 Posts 4 Posters 7.0k 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
    Bob.Dig LAYER 8 @Gertjan
    last edited by Mar 11, 2021, 8:15 AM

    @gertjan I think we were there already.
    Adieu 😉

    G 1 Reply Last reply Mar 11, 2021, 8:33 AM Reply Quote 1
    • G
      Gertjan @Bob.Dig
      last edited by Gertjan Mar 11, 2021, 8:33 AM Mar 11, 2021, 8:33 AM

      @bob-dig

      I knew it. The question sounded familiar 😊

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • B
        Bob.Dig LAYER 8
        last edited by Apr 4, 2021, 10:28 AM

        I have to bring that up because it is an ongoing problem. Sometimes it works over other interfaces, sometimes it doesn't.

        1 Reply Last reply Reply Quote 0
        • B
          Bob.Dig LAYER 8
          last edited by Apr 4, 2021, 5:25 PM

          I enabled Register DHCP leases in the DNS Resolver in addition to the already enabled Register DHCP static mappings in the DNS Resolver and now it is working again, before even FQDN wasn't working. It is a mess.

          1 Reply Last reply Reply Quote 0
          • B
            Bob.Dig LAYER 8
            last edited by Bob.Dig Apr 7, 2021, 6:07 PM Apr 7, 2021, 6:07 PM

            I noticed that sometimes my windows can't connect even if via ip it is possible and even the dns resolution is working according to nslookup. It is making no sense to me.

            J 1 Reply Last reply Apr 7, 2021, 6:21 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @Bob.Dig
              last edited by Apr 7, 2021, 6:21 PM

              Are you IPs changing? This isn't freaking rocket science ;) But it does require some basic understanding of dns and networking..

              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

              B 1 Reply Last reply Apr 8, 2021, 8:01 AM Reply Quote 0
              • B
                Bob.Dig LAYER 8 @johnpoz
                last edited by Bob.Dig Apr 8, 2021, 8:04 AM Apr 8, 2021, 8:01 AM

                @johnpoz They don't change but the windows smb shares don't work anymore, unreachable, although via IP it is working.
                But I don't know what the reason is, an ARP problem maybe? It is two Windows PCs across different interfaces.

                But I just noticed that the problem was different when I started this thread. It somehow looks related to me but it might not be.

                J 1 Reply Last reply Apr 8, 2021, 9:53 AM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @Bob.Dig
                  last edited by Apr 8, 2021, 9:53 AM

                  Well troubleshoot the problem - if its not working via IP, it has zero to do with name resolution.

                  Sniff - what happens.. Does pfsense send on the syn.. Then its not pfsense..

                  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

                  B 1 Reply Last reply Apr 8, 2021, 11:09 AM Reply Quote 0
                  • B
                    Bob.Dig LAYER 8 @johnpoz
                    last edited by Bob.Dig Apr 8, 2021, 11:18 AM Apr 8, 2021, 11:09 AM

                    @johnpoz It always does work with IP, names some of the time.
                    But to my later problem, I had ACL one machine to use the resolver only for local stuff. Maybe windows will not use it anymore and will favor the other... hard to tell. I switched to ip and will stay there, at least in that vm.
                    The original problem, RDP just over the hostname seems gone, it always works so, even across interfaces.

                    J 1 Reply Last reply Apr 8, 2021, 1:10 PM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator @Bob.Dig
                      last edited by Apr 8, 2021, 1:10 PM

                      @bob-dig said in 2.5 connecting via hostname not working across interfaces:

                      I had ACL one machine to use the resolver only for local stuff.

                      Huh? How exactly do you think that could work? While sure you can set the ACL to only be able to resolve local stuff. How would that client then resolve public stuff? You can't just point a client to 2 different NS that resolve different things and not have problems.

                      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

                      B 1 Reply Last reply Apr 8, 2021, 1:11 PM Reply Quote 0
                      • B
                        Bob.Dig LAYER 8 @johnpoz
                        last edited by Apr 8, 2021, 1:11 PM

                        @johnpoz It worked for some time... but it is probably the reason for the latest problems.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Bob.Dig LAYER 8
                          last edited by Bob.Dig Jun 30, 2021, 6:31 PM Jun 30, 2021, 6:16 PM

                          I once again had to reinstall a fresh pfSense and guess what is not working again, RDP only via hostname.
                          But it seems related to using DHCP on my Windows. If I am using DHCP for IPv4, I can connect via hostname. If I dial-in the same settings manually, I only can connect via FQDN.
                          So it is all a windows "thingy". Weird but now I know at least this.

                          J 1 Reply Last reply Jun 30, 2021, 8:54 PM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @Bob.Dig
                            last edited by Jun 30, 2021, 8:54 PM

                            @bob-dig You can not resolve just hostname unless you are on the same L2 and broadcast for it.

                            If you actually setup your network correctly be able to resolve everything via FQDN, and your window devices would auto add the domain your using locally via domain suffix.

                            This is a layer 8 issue...

                            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

                            B 1 Reply Last reply Jul 1, 2021, 6:37 AM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @johnpoz
                              last edited by Bob.Dig Jul 1, 2021, 6:38 AM Jul 1, 2021, 6:37 AM

                              @johnpoz said in (solved) 2.5 connecting via hostname not working across interfaces:

                              This is a layer 8 issue...

                              I got you.

                              But there is still one missing puzzle peace. Why the heck it will work after some time (weeks), even if I dialed in the settings my self only in the first window of the IPv4 Properties, missing out on the DNS suffix field? Only Windows knows.

                              J 1 Reply Last reply Jul 1, 2021, 12:25 PM Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator @Bob.Dig
                                last edited by Jul 1, 2021, 12:25 PM

                                @bob-dig said in (solved) 2.5 connecting via hostname not working across interfaces:

                                missing out on the DNS suffix field? Only Windows knows.

                                Huh?? Sorry I can not make any sense of that... You either broadcast for a hostname, or you resolve a fqdn.. There is no "puzzle" to it..

                                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

                                B 1 Reply Last reply Jul 1, 2021, 1:47 PM Reply Quote 0
                                • B
                                  Bob.Dig LAYER 8 @johnpoz
                                  last edited by Jul 1, 2021, 1:47 PM

                                  @johnpoz said in (solved) 2.5 connecting via hostname not working across interfaces:

                                  There is no "puzzle" to it..

                                  Riddle me this. Why is it for some time not working and later it is?

                                  J 1 Reply Last reply Jul 1, 2021, 2:01 PM Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator @Bob.Dig
                                    last edited by johnpoz Jul 1, 2021, 2:08 PM Jul 1, 2021, 2:01 PM

                                    @bob-dig said in (solved) 2.5 connecting via hostname not working across interfaces:

                                    Riddle me this. Why is it for some time not working and later it is?

                                    Have no freaking idea what your setup is... I can tell you this - YOU CAN NOT resolve a hostname from dns, it has to be fully qualified... That is how dns works.

                                    I have no idea what your actually doing, or how your network is setup or what your trying to resolve and how.

                                    For all we know why it some times worked and sometimes didn't is you had your client pointing to 2 different dns, and when it asked pfsense for host.domain.tld it worked, and when it asked your external dns it failed because it has no clue to your local domain.

                                    You can not control what NS a client might ask when there is more than one..

                                    What I can tell you is if setup correctly you could always resolve all your resources via just putting in a hostname because the client would auto added the suffix for whatever domain your using locally.. And now you have zero issues and can always resolve..

                                    here I just put in nas, and it actually resolve the fqdn nas.local.lan because my client auto does that dns lookup by auto adding the suffix.

                                    C:\>ping nas
                                    
                                    Pinging nas.local.lan [192.168.9.10] with 32 bytes of data:
                                    Reply from 192.168.9.10: bytes=32 time<1ms TTL=64
                                    

                                    Here is it doing the fqdn query, even though I only used nas

                                    fqdn.png

                                    suffix
                                    suffix.png

                                    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

                                    JeGrJ 1 Reply Last reply Jul 1, 2021, 2:56 PM Reply Quote 1
                                    • JeGrJ
                                      JeGr LAYER 8 Moderator @johnpoz
                                      last edited by Jul 1, 2021, 2:56 PM

                                      Someone can call me names, but I guess it could be simple Windows doofus magic. I'd be guessing that it works after

                                      • device was in the same L2 (e.g. at home)
                                      • device did a check for <name>
                                      • device got an answer for <name> as it's on the same l2 network and/or DNS is configured correctly
                                      • device goes on adventure and dials in via VPN
                                      • device still has DNS/name cached in applications and system
                                      • device rebooted/cleared - device no longer able to resolve name without fqdn.

                                      If the local DHCP submits a correct DNS search path and default domain and OpenVPN is configured to match that, simple name resolution should work either way as the client should always attach its primary domain suffix/default domain to a "name only"

                                      It's difficult though if your e.g. laptop is in a windows domain (work) and you take it home. Even though it's pushed via DHCP windows can be stubborn and add your AD domain as default to any hostname-only things.

                                      So yeah, that can very well be a windose problem :)

                                      Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                                      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                                      G 1 Reply Last reply Jul 1, 2021, 4:05 PM Reply Quote 1
                                      • G
                                        Gertjan @JeGr
                                        last edited by Jul 1, 2021, 4:05 PM

                                        @jegr said in (solved) 2.5 connecting via hostname not working across interfaces:

                                        If the local DHCP submits a correct DNS search path and default domain ....

                                        So yeah, that can very well be a windose problem :)

                                        If we use Windows, we all use the "20H1 Pro version", right ?

                                        From what I know :
                                        The pfSense DHCP server hands over many 'options', and one of it is the DNS domain search option' :

                                        Liste de recherche du suffixe DNS.: my-local-domain.net
                                        

                                        (Sorry for the non native language)

                                        This, me doing NOTHING on a (new) PC : I hook it up, and everything works.

                                        All of this can be checked by packet capturing (the DHCP negotiation).
                                        DNS traffic from a PC doesn't query a host like ': what is the A record of 'nas' ?
                                        'nas' isn't a valid 'URL' here - it must have the FQDN format.
                                        It won't break 'DNS' rules (I guess, as a 'get lost' reply will follow).
                                        It will ask for "nas.my-local-domain.net" - this is a FQDN, and the resolver can handle that request just fine.
                                        It even knows that it shouldn't bother the 'root' servers with this request, as it knows that this request is (and stays) local : my-local-domain.net.

                                        Btw : this is how I think it works, as it makes a lot of sense.
                                        Also : I'm talking about a 'new Windows device', never 'touched' by some one - and a 'default' pfSense installation : it's plug and play.

                                        No "help me" PM's please. Use the forum, the community will thank you.
                                        Edit : and where are the logs ??

                                        1 Reply Last reply Reply Quote 1
                                        • B
                                          Bob.Dig LAYER 8
                                          last edited by Bob.Dig Jul 1, 2021, 4:49 PM Jul 1, 2021, 4:46 PM

                                          @Gertjan Yes you are right. That is why it is working if I am using dhcp from pfSense and why it is not working when I dial in my settings only in the first window of the IPv4 settings, without going deeper for filling in DNS suffix field.

                                          You also can see this with ipconfig -all, the suffix is missing.

                                          @johnpoz And there is no second DNS Server, only pfSense. The second DNS-Server is long gone, we had talked about it and you where right with that.

                                          And this is what I don't get, why it will work after some time (could be weeks, month maybe) anyways. I don't use openVPN on my Windows machine.
                                          I have absolute no clue. That is the puzzle for me. Anyways, I am sure it has nothing to do with pfSense and we can close this now for good.

                                          J 1 Reply Last reply Jul 1, 2021, 7:04 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received