• 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.
  • G
    Gertjan @Bob.Dig
    last edited by Mar 1, 2021, 9:07 AM

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

    and my windows is not new. Host file is empty on it,

    The host file on windows == don't care.
    I was talking about the hosts file of pfSense.

    Make your Windows IPv4 DHCP "domain name aware" :

    53008350-106b-42e6-866a-9a4cc471b6e9-image.png

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

    B 1 Reply Last reply Mar 1, 2021, 9:11 AM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @Gertjan
      last edited by Mar 1, 2021, 9:11 AM

      @gertjan Thanks for the solution.
      Although it was not the point of my posting. 🙂

      G 1 Reply Last reply Mar 1, 2021, 9:18 AM Reply Quote 0
      • G
        Gertjan @Bob.Dig
        last edited by Mar 1, 2021, 9:18 AM

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

        @gertjan Thanks for the solution.
        Although it was not the point of my posting. 🙂

        Ah, yes, the issue :

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

        I used to connect RDP via hostname, this has always worked for me with 2.4.5.
        Now with a fresh 2.5 it works only on the same interface.

        Check :

        Can you actually connect from 'a network' to 'another network' : check your firewall wall rules on the 'a network' interface.
        Also : the system you RDP to accepts connection form the 'a network' ? and not only from its own network ?

        I didn't detect any changes. I can still RDP into my 'local' systems using aremote VPN access etc.

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

        B 1 Reply Last reply Mar 1, 2021, 9:21 AM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @Gertjan
          last edited by Bob.Dig Mar 1, 2021, 9:42 AM Mar 1, 2021, 9:21 AM

          @gertjan RDP just works fine via FQDN, so it is the pfSense DNS-Resolver which now behaves differently, thanks to all our testing, I would say.

          J 1 Reply Last reply Mar 1, 2021, 11:35 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @Bob.Dig
            last edited by johnpoz Mar 1, 2021, 11:37 AM Mar 1, 2021, 11:35 AM

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

            DNS-Resolver which now behaves differently

            Again what version of pfsense were you on?? 2.3.3 fixed the problem of resolving just hostnames.

            https://docs.netgate.com/pfsense/en/latest/releases/2-3-3.html#dns-resolver-forwarder
            Changed behavior of DNS Resolver overrides to only add FQDN entries, not short hostnames #6064

            That was Feb of 2017

            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 Mar 1, 2021, 11:41 AM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @johnpoz
              last edited by Bob.Dig Mar 1, 2021, 11:46 AM Mar 1, 2021, 11:41 AM

              @johnpoz 2.4.5.p1, as I said, always the latest. So you say, it is not a bug, it is feature? I can't quite see it, but good to know.
              I think I started with pfSense with 2.4.4., but not sure exactly.
              The other change is I now use a gen2 VM instead of a gen1 VM and another NIC (Hyper-V).

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

                It resolving just hostname was a bug yes.

                dns - to resolve it must be fqdn.

                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 1
                • J
                  JeGr LAYER 8 Moderator
                  last edited by Mar 2, 2021, 8:22 AM

                  Or another thing that could be the culprit would be the DHCP Domain added to your client. If that changed in your new install of 2.5 or you added VLANs and used different Domain parts in DHCP for those (vlan1.home.arpa, vlan2.home.arpa, lan.home.arpa etc) and/or your windows client didn't get the domain search path (or a new one), a lookup of "nslookup <name>" won't get resolved anymore. With domain search path set to "home.arpa" that should be extended to "<name>.home.arpa" and if that won't exist or is unknown to unbound, that won't get you far. I think there was some bug/problem with DHCP and different default domains or search paths per VLAN but I'm not entirely sure ;)

                  But setting the domain search path in DHCP (or manually adding the suffix as Gertjan pointed out on the client itself) should let Windows resolve hostnames only

                  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.

                  B 1 Reply Last reply Mar 2, 2021, 8:32 AM Reply Quote 1
                  • B
                    Bob.Dig LAYER 8 @JeGr
                    last edited by Bob.Dig Mar 2, 2021, 8:32 AM Mar 2, 2021, 8:32 AM

                    @jegr Definitely did none of those things before and now.

                    But RDP-Client is very sticky with targets anyway so there will be no discomfort once I have all of them in there and I deleted all hostnames. 😉

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bob.Dig LAYER 8
                      last edited by Bob.Dig Mar 16, 2021, 11:53 AM Mar 10, 2021, 6:38 PM

                      Meanwhile it is working like in the past, hostname only connecting without a problem, although ubound still couldn't answer. Maybe a windows "feature". 😉

                      Probably not related to pfSense in the first place.

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

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

                        hostname only connecting without a problem

                        Your either doing discovery - which would be same L2, or your windows clients are adding suffix like they are suppose to..

                        Sorry but it is not possible to do discovery, be it broadcast, multicast, LLDP, WSD, etc. across vlans.. For dns to respond the query has to be fully qualified.

                        You running an old school WINS ;)

                        example... Here I only ask for sg4860, but you see the actual query sent via nslookup is sg4860.local.lan.. Because windows has that as its search suffix.

                        C:\>nslookup
                        Default Server:  pi-hole.local.lan
                        Address:  192.168.3.10
                        
                        > set querytype=A
                        > set debug
                        > sg4860
                        Server:  pi-hole.local.lan
                        Address:  192.168.3.10
                        
                        ------------
                        Got answer:
                            HEADER:
                                opcode = QUERY, id = 2, rcode = NOERROR
                                header flags:  response, want recursion, recursion avail.
                                questions = 1,  answers = 1,  authority records = 0,  additional = 0
                        
                            QUESTIONS:
                                sg4860.local.lan, type = A, class = IN
                            ANSWERS:
                            ->  sg4860.local.lan
                                internet address = 192.168.9.253
                                ttl = 3547 (59 mins 7 secs)
                        
                        ------------
                        Non-authoritative answer:
                        Name:    sg4860.local.lan
                        Address:  192.168.9.253
                        
                        >
                        
                        C:\>ipconfig /all
                        
                        Windows IP Configuration
                        
                           Host Name . . . . . . . . . . . . : I5-Win
                           Primary Dns Suffix  . . . . . . . : local.lan
                           Node Type . . . . . . . . . . . . : Broadcast
                           IP Routing Enabled. . . . . . . . : No
                           WINS Proxy Enabled. . . . . . . . : No
                           DNS Suffix Search List. . . . . . : local.lan
                        
                        

                        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 Mar 10, 2021, 6:54 PM Reply Quote 0
                        • B
                          Bob.Dig LAYER 8 @johnpoz
                          last edited by Bob.Dig Mar 10, 2021, 6:58 PM Mar 10, 2021, 6:54 PM

                          @johnpoz It is still looking different here:

                          PS C:\WINDOWS\system32> nslookup
                          Default Server:  pfSense.home.arpa
                          Address:  192.168.1.1
                          
                          >  set querytype=A
                          >  set debug
                          > mail
                          Server:  pfSense.home.arpa
                          Address:  192.168.1.1
                          
                          ------------
                          Got answer:
                              HEADER:
                                  opcode = QUERY, id = 2, rcode = NXDOMAIN
                                  header flags:  response, want recursion, recursion avail.
                                  questions = 1,  answers = 0,  authority records = 1,  additional = 0
                          
                              QUESTIONS:
                                  mail, type = A, class = IN
                              AUTHORITY RECORDS:
                              ->  (root)
                                  ttl = 612 (10 mins 12 secs)
                                  primary name server = a.root-servers.net
                                  responsible mail addr = nstld.verisign-grs.com
                                  serial  = 2021031001
                                  refresh = 1800 (30 mins)
                                  retry   = 900 (15 mins)
                                  expire  = 604800 (7 days)
                                  default TTL = 86400 (1 day)
                          
                          ------------
                          *** pfSense.home.arpa can't find mail: Non-existent domain
                          
                          PS C:\WINDOWS\system32> ipconfig -all
                          
                          Windows IP Configuration
                          
                             Host Name . . . . . . . . . . . . : U5
                             Primary Dns Suffix  . . . . . . . :
                             Node Type . . . . . . . . . . . . : Hybrid
                             IP Routing Enabled. . . . . . . . : No
                             WINS Proxy Enabled. . . . . . . . : No
                             DNS Suffix Search List. . . . . . : home.arpa
                          

                          Really have no clue why it is working again and not before.

                          G 1 Reply Last reply Mar 11, 2021, 7:36 AM Reply Quote 0
                          • G
                            Gertjan @Bob.Dig
                            last edited by Gertjan Mar 11, 2021, 7:40 AM Mar 11, 2021, 7:36 AM

                            @bob-dig

                            My turn :
                            I don't have a local host name called 'mail', but I have one called 'diskstation2' :

                            C:\Users\Gauche>nslookup
                            Serveur par dÚfaut :   pfsense.my-domain.net
                            Address:  2001:470:1f13:5c0:2::1
                            
                            > set querytype=A
                            > set debug
                            > diskstation2
                            Serveur :   pfsense.my-domain.net
                            Address:  2001:470:1f13:5c0:2::1
                            
                            ------------
                            Got answer:
                                HEADER:
                                    opcode = QUERY, id = 2, rcode = NOERROR
                                    header flags:  response, auth. answer, want recursion, recursion avail.
                                    questions = 1,  answers = 1,  authority records = 0,  additional = 0
                            
                                QUESTIONS:
                                    diskstation2.my-domain, type = A, class = IN
                                ANSWERS:
                                ->  diskstation2.my-domain.net
                                    internet address = 192.168.1.33
                                    ttl = 3600 (1 hour)
                            
                            ------------
                            Nom :    diskstation2.my-domain.net
                            Address:  192.168.1.33
                            
                            >
                            
                            C:\Users\Gauche>ipconfig -all
                            
                            Configuration IP de Windows
                            
                               Nom de l’hîte . . . . . . . . . . : Gauche2
                            ......
                               Liste de recherche du suffixe DNS.: my-domain.net
                            
                            Carte Ethernet Ethernet :
                            
                               Suffixe DNS propre Ă  la connexion. . . : my-domain.net
                               Description. . . . . . . . . . . . . . : Intel(R) Ethernet Connection (11) I219-LM
                               Adresse physique . . . . . . . . . . . : A4-BB-AC-BA-16-A1
                               DHCP activé. . . . . . . . . . . . . . : Oui
                               Configuration automatique activée. . . : Oui
                               Adresse IPv6. . . . . . . . . . . . . .: 2001:470:beef:5c0:2::c7(prefered)
                               Bail obtenu. . . . . . . . . . . . . . : mercredi 10 mars 2021 06:51:57
                               Bail expirant. . . . . . . . . . . . . : jeudi 11 mars 2021 10:04:47
                               Adresse IPv6 de liaison locale. . . . .: fe80::410c:5e0d:e1a1:6075%10(prefered)
                               Adresse IPv4. . . . . . . . . . . . . .: 192.168.1.6(prefered)
                               Masque de sous-rĂ©seau. . . . . . . . . : 255.255.255.0
                               Bail obtenu. . . . . . . . . . . . . . : mercredi 10 mars 2021 08:18:04
                               Bail expirant. . . . . . . . . . . . . : vendredi 12 mars 2021 00:38:52
                               Passerelle par dĂ©faut. . . . . . . . . : fe80::215:17ff:fe77:d118%10
                                                                   192.168.1.1
                               Serveur DHCP . . . . . . . . . . . . . : 192.168.1.1
                               IAID DHCPv6 . . . . . . . . . . . : 111459181
                               DUID de client DHCPv6. . . . . . . . : 00-01-00-01-26-AC-DF-8D-BB-BB-6D-BA-16-A1
                               Serveurs DNS. . .  . . . . . . . . . . : 2001:470:1f13:5c0:2::1
                                                                   192.168.1.1
                            

                            Your 'unbound' doesn't know it lives in "home.arpa" so it should (should it ?) try also
                            mail.home.arpa
                            which should be in the /etc/hosts file on pfSense, thus known to unbound, as it reads /etc/hosts at start-up.
                            IF not, give that host called 'mail' a static DHCP MAC lease **, or host override it on the unbound settings page.

                            ** and keep this checked :
                            8e8d861d-84e6-4161-b17b-c9abece68f3d-image.png

                            edit : I'm not using a domain like "home.arpa". As I need known 'cert' on my LAN, I use a 'real' (rented) domain name for internal uses and acme. I don't think that difference matters.

                            My unbound knows that :diskstaion2 is local, as it is definced in /etc/hosts/

                            .....
                            192.168.1.33	DiskStation2.my-domain.net DiskStation2
                            ....
                            

                            Strange to see that unbound even bothers a main root server with a non valid host name like 'mail'.

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

                            B 1 Reply Last reply Mar 11, 2021, 7:42 AM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @Gertjan
                              last edited by Mar 11, 2021, 7:42 AM

                              @gertjan Bonjour.
                              They all got a static mapping and this box is checked all the time.
                              So still no clue why this behavior changed and now has changed again.
                              C’est la vie...

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

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

                                C’est la vie...

                                Coté fichier /etc/hosts : toutes tes hÎtes y figurent ?

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

                                B 1 Reply Last reply Mar 11, 2021, 8:15 AM Reply Quote 0
                                • 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
                                          • 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