Looking for clarification of two options regarding DHCP and DNS registration
I was working on getting DNS resolution resolved on my local LAN and I seem to have fixed the problem with two options that have almost identical descriptions. I am using 2.3.4 on a fresh install.
What I was trying to resolve is really simple. I want to be able to ping my desktop via hostname (e.g. mybox.example.com) and it resolve to my desktops LAN ip.
I ran across two options…
- DHCP Server --> Lan --> "Enable registration of DHCP client names in DNS"
2 )DNS Resolver -> General Settings -> "Register DHCP leases in the DNS Resolver"
The way both of these options read, they do the exact same thing. However, I found the top option first, check marked it, restarted DHCP server, renewed my lease on my PC and no dice. I did a nslookup on the pfsense box via Diagnostics --> DNS Lookup and the hostname of my machine was not resolving (pfsense.example.com was). I looked around for a little while longer and ran into the second option. Checked that box, applied the changes and then ran a DNS Lookup on the pfsense box again and it resolved to my machine. I did a ping on my local box and it didn't work, however nslookup was correct on my machine. Eventually (I assume it was to do with the ttl) it started resolving correctly.
Everything seems to be working at this point, so my question is, what is the difference in the two options?
The first option registers them to an external DNS server (specified in the options underneath that checkbox).
The second activates special code to find hostnames in the leases DB and use them in the resolver.