Resolving hostnames of static IP users

  • 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 DHCP range is
    For example host with has not recognized hostname.

    How can I have it working?

  • LAYER 8 Global Moderator

    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.

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

  • LAYER 8 Global Moderator

    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.

  • 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.

  • LAYER 8 Global Moderator

    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..


    > 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              
    ;; Query time: 1 msec                                                     
    ;; SERVER:                                
    ;; 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 [] with 32 bytes of data:
    Reply from bytes=32 time<1ms TTL=64
    Reply from bytes=32 time<1ms TTL=64

Log in to reply