How to setup a Host Override
-
@jimfreeze well clearly your client isn't using what dhcp handing out..
Why are you pointing dns to itself there in general - out of the box that should just be nothing, and your also allowing overide from dhcp on wan.
What does your dhcp show..
-
@johnpoz Ahh, sorry about self pointing dns address. That has been fixed.
I was missing the config of the DHCP server. This is what I have now and it seems to work fine.
-
@johnpoz Not sure if I still have an issue or not, but trying to access the router via DNS Override returns this message in the browser.
Potential DNS Rebind attack detected, see http://en.wikipedia.org/wiki/DNS_rebinding Try accessing the router by IP address instead of by hostname.
-
@jimfreeze if you would of left those just blank - they would point to interface address.
Pointing to both pfsense and google is bad idea - you have no idea which of those your client might use. And if he asks google for your pfsense.local - he would get nx, and not going to ask any of his other listed NS for it - why should he - he got told it didn't exist, etc..
you should only ever point client to NS that actually resolve the same way, be it with local records or with filtering, etc.. If you point to more than 1 NS, and they might not resolve stuff the same way you just asking for grief..
edit: as to your rebind.. why would you not just access pfsense via its pfsense.home.arpa address? pfsense.local is not pfsense correct name, so yeah that could cause all kinds of issues..
-
@johnpoz So, here is the general setup:
I removed all Host Overrides on DNS Resolver
And here is the DHCP Server
Clients receive the following when connecting
# search home.arpa nameserver 192.168.100.1
I'm not understanding how to access "pfsense.home.arpa". It returns the following when doing a DNS Lookup test
-
@jimfreeze well you got something a bit wonky there.. the hostname of pfsense should resolve to its LAN ip..
example.
Get rid of your allow wan dhcp to set dns in your general setup.. looks like your asking 192.168.1.254 for dns as well?
-
@johnpoz As far as I can tell, pfsense is getting the
192.168.1.254
resolver when it gets its address via DHCP from the ATT modem.I have unchecked "Allow DNS server list to be overridden by DHCP/PPP on WAN" from the general setup.
Still getting a failure on DNS lookup.
-
@jimfreeze well is unbound even running? Pfsense name would what it resolves too out of the box..
-
@johnpoz I don't think unbound is running.
I went ahead and set up a Host Override for that domain.
Thank you for all the help.
Jim
-
@jimfreeze said in How to setup a Host Override:
I don't think unbound is running.
Then host overrides wouldn't be working either..
Do you have unbound listening on localhost? or All?
-
@johnpoz I'm not seeing unbound in the web GUI, but it has a process on the box.
unbound 84523 0.0 0.3 65236 28860 - Ss 14:40 0:00.90 /usr/local/sbin/unbound -c /var/unbound/unbound.conf
-
@jimfreeze go to status services do you see it running?
-
@johnpoz Ahh, yes, thank you. It is running.
-
@jimfreeze well then it should timeout after 800 some ms.. for pfsense name.. Its right there in the file.. See mine sg4860.local.lan
Again will ask - is it listening on all or if not all atleast has localhost (127.0.0.1) listed
-
@johnpoz It appears to be listening on all.
-
Hi, I am not sure but maybe you need to clear your state table.
-
@uglybrian Hmmm. I reset the state table, and same result.
% ping pfsense.lan ping: cannot resolve pfsense.lan: Unknown host
-
@jimfreeze why would you think .lan would work, you were using .local or home.arpa
What does your /etc/hosts file have in it?
-
@johnpoz I haven't added anything to /etc/hosts.
Is
home.arpa
special in some way? -
It’s your host name and domain. So pfsense.home.arpa