Is there a way to put a FQDN into PFsense DNS without registering a domain name externally? Almost like an lmhosts file in Windows? Looks like you can add a DNS "Host Override" under advanced in DNS forwarder? Is it a good idea to do this? For example, the FQDN for the pub is an external hosted website, but could add wifi.puburl.com into the hosts override and assign this to the captive portal ip?
Still not really sure what that call to the function does mentioned above?
Looks like it would only be useful if you had more than one interface using the Captive Portal. It seems to look at the interfaces in use for the portal, get the IP/Subnet for those interfaces, look to see which the clientIP 'matches', and then assigns the IP address for the captive portal according to which interface the client is on?
So if using just one interface, you could opt to loose the call to this function, as you are always going to get the same result from the call.
Is there a reason to NOT use the hostname of the pfsense server?