Split DNS inconsistencies
-
perhaps by having dnsmasq use a separate file rather than /etc/hosts, that would be a win for me.
Well just use
"host-record=www.fudzilla.com,192.168.55.1"
See the post from above.
So here is my /etc/host
[2.1.1-PRERELEASE][admin@pfsense.local.lan]/root(2): cat /etc/hosts
127.0.0.1 localhost localhost.local.lan
192.168.1.253 pfsense.local.lan pfsense
192.168.1.31 raspberrypi.local.lan raspberrypi
192.168.1.99 popcorn.local.lan popcorn
192.168.1.100 i5-w7.local.lan i5-w7snipped
dhcpleases automatically entered
192.168.1.215 w81.local.lan w81 # dynamic entry from dhcpd.leases
192.168.1.214 2012r2.local.lan 2012r2 # dynamic entry from dhcpd.leases
192.168.2.217 G500.local.lan G500 # dynamic entry from dhcpd.leases
192.168.2.213 android-497a3c8329e0a007.local.lan android-497a3c8329e0a007 # dynamic entry from dhcpd.leases
192.168.2.211 Chromecast.local.lan Chromecast # dynamic entry from dhcpd.leases
192.168.3.100 W7X64-VM.local.lan W7X64-VM # dynamic entry from dhcpd.leasesetc…
There is no www.fudzilla.com in there.. But if I put in the above, see attached -- so pfsense using outside dns, not itself resolves the public IP for that host, but boxes on my lan using pfsense for dns resolve the record I put in. So as long as you don't have it entered via dhcp record your fine.
-
host-record is exactly what I was after. I missed that the first time I read bryan.paradis's post, thanks johnpoz for pointing it out again.
This is great, it lets me ditch unbound (which hasn't been the most stable in production)
Thanks again,
-Zandr