Can't get DNS resolve to work with domain without tld.
-
I have little trouble to get dns resolve to point domain without FQDN to my local server. E.g. I have domain happydays-test and want to point ip xx.xx.xx.xx. Is it possible?
I used before windows server dns to handle this and it works perfect, but because I turned my windows server off and tried to make pfsense to handle dns.
-
@bihzs said in Can't get DNS resolve to work with domain without tld.:
happydays-test
are your clients asking pfsense for dns?
But why? Why you not just use a fqdn? The special domain to use locally, if you don't know what to use would be home.arpa this is what pfsense defaults to using as domain.
so for example
happydays-test.home.arpa would be a fqdn.If you set the home.arpa as your search domain, then clients would auto add that when just looking for happydays-test
-
@johnpoz
Hi John thanks for your response/feedback.
I need this becuase I work at home and need to connect to my workplace and they used not full FQDN. I had before run AD with DHCP + DNS on windows server and there worked it perfect and moved this to pfsense to handle my dns because of time safe and maintain handle.I had configured like your examples and they show me no results. Do i miss something ? and do you using resolver or forwarder ?
-
@bihzs your laptop is asking who exactly for dns - its using its own local loopback address, so you really have no idea where that asks for actual dns.
Change your dig command to ask pfsense IP, so your sure that is working. Use the @IPaddress of your pfsense IP on your network. See in my example I called out @192.168.9.253, this is IP of my lan on pfsense. By default I use pihole on my network, and it would not forward a non fqdn to pfsense to resolve. So just asked pfsense directly with the @
And I use resolver. You sure you put your host override in what your actually using - that happens now and then user using forward and put host override in resolver, or using resolver and put host override in forwarder.
-
@johnpoz it's shows when I try dns lookup than it point's on correct ip address. But in my browser it still complain about dns.
-
@bihzs well is your browser using doh? They love to do that.
But clearly pfsense is answering with the info you put in.. If your client or application doesn't ask pfsense for that, its not pfsense fault ;)
-
Hi @johnpoz,
Thanks it works i found the solution. I was need to implement my gateway ip adress on my ubuntu in /etc/resolve.conf before it works.Thanks again for you help.
-
@bihzs what was it using before? While unbound running on pfsense would yeah be the same IP as your gateway.. Its not actually your gateway, resolve.conf would point to what you want to use for dns ;)
-
@bihzs
if it's ubuntu take a look at /etc/systemd/resolved.conf
#DNS=
or there is a possibility that you will lose that setting on the next reboot