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

    Resolving hostnames of static IP users

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 3.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.
    • D
      ds
      last edited by

      Hi,

      my ARP table doesn't contain all hostnames of users in LAN. Only hosts with DHCP lease have recognized hostnames.

      Static IP users are out of DHCP range. Whole LAN is 192.168.0.1-255. DHCP range is 192.168.0.160-190.
      For example host with 192.168.0.20 has not recognized hostname.

      How can I have it working?

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

        Create a host override for your static entries.. Are they static set on the client or are you talking a dhcp reservation on the dhcp server that gives machine same IP based on its mac?  If so just have it register those in your dns and there you go name resolution.

        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
        • D
          ds
          last edited by

          They are static set on the client devices. Ok, I have to read what is Host Override and how to configure it. Thanks.

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

            I assume your using the resolver - go to the bottom of it and click add for host override.. Or if you using the forwarder in that tab.

            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
            • D
              ds
              last edited by

              Resolver is enabled. I have to add also Domain Name. The result is that DHCP entries are like DS-PC, but entry from Host Override is like MS-PC.WORKGROUP. I can ping it with 'ping MS-PC.WORKGROUP' and I see that correct IPv4 is responding.

              The other thing is that this static IP user is reachable also with MS-PC hostname (e.g. by 'ping MS-PC'), because somehow it is translated to IPv6.

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

                What domain are you using in pfsense?  workgroup??  That is a bad choice to be honest.. single label not a really good idea.. I use local.lan as my domain.. So yes all machines fqdn would be host.local.lan but they resolve via hostname just fine..

                example

                
                > dig esxi                                                                
                
                ; <<>> DiG 9.10.4-P2 <<>> esxi                                            
                ;; global options: +cmd                                                   
                ;; Got answer:                                                            
                ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1728                  
                ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1   
                
                ;; OPT PSEUDOSECTION:                                                     
                ; EDNS: version: 0, flags:; udp: 4096                                     
                ;; QUESTION SECTION:                                                      
                ;esxi.                          IN      A                                 
                
                ;; ANSWER SECTION:                                                        
                esxi.                   3600    IN      A       192.168.9.40              
                
                ;; Query time: 1 msec                                                     
                ;; SERVER: 192.168.9.253#53(192.168.9.253)                                
                ;; WHEN: Fri Aug 26 08:11:48 Central Daylight Time 2016                   
                ;; MSG SIZE  rcvd: 49                                                     
                
                

                If your BROADCASTING for names then yeah prob return ipv6 if you have ipv6 enabled since pretty much every current os out there is set to prefer ipv6 over ipv4..

                Notice when I do something like just ping for the hostname it returns the fqdn

                ping esxi

                Pinging esxi.local.lan [192.168.9.40] with 32 bytes of data:
                Reply from 192.168.9.40: bytes=32 time<1ms TTL=64
                Reply from 192.168.9.40: bytes=32 time<1ms TTL=64

                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.