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