@etoel said in DNS resolver stops working after a while:
Is the added suffix the problem? If so how do I get rid of it?
The problem is ..... we - that is you me and nearly everybody else is doing it wrong.
Launch this in a pfSense SSH or console :
tail -f /var/log/pfblockerng/dns_reply.log
Now you have a nice view on what the resolver does.
On a 'dos' command prompt, do a
nslookup google.com
You will see 2, 3 requests for google.com in the log, the first with the "Connection-specific DNS Suffix" appended.
Now, again :
nslookup google.com.
Did you see the dot at the end ? That is the correct way of spelling a host name.
Now, nslookup will not insist by adding the local "Connection-specific DNS Suffix". As the final dot means : this is the end, nothing comes after this. You'll see just on or two google.com. DNS requests in the log. No more "Connection-specific DNS Suffix" added.
One, or two, A and/or AAAA is asked.
Btw :
Enter nslookup without options, and then type help + enter.
Type set d2 + Enter
and now do a test again, like
google.com
and now you can see what happened as you have debug mode level 2 activated..
Btw : I'm running 23.01 and 4100 (that's a small 6100 ;) ) - with the latest pfB 3.2.0_3.
Resolver settings are 'vanilla', which means I'm resolving.
My DNS resolver never dies on me.
Btw : DNSSEC is activated. Works great ..... I guess, as I never noticed an issue.