Advice Request Help needed with DNS configuration

Please provide comments and solutions that are helpful to the author of this topic.

X195

Level 1
Thread author
Aug 31, 2023
17
Hi All,

I currently have an OPNsense router which has the Adguard plugin installed.
I have configured it also to use unbound DNS over TLS to Cloudflare and Quad9 upstream public DNS as per this guide:

How to setup AdGuard Home DNS on OPNsense with Unbound - windgate
1721211575943.png


"In our setup, we will actually use two internal DNS server services. The Adguard DNS requests will be forwarded to Unbound which would act as a validating, recursive, and caching DNS resolver and will encrypt our traffic with DNSSEC"

I have two questions:

1. When using this configuration, how should I set the DNS over HTTPS setting in my browser? I currently have is set to OFF (use your default DNS resolver). Does that sound correct or should I also enable DNS over HTTPS in the browser for additional security ?

1721213100140.png


2. Is there any benefit to using NextDNS as my upstream public DNS rather than Quad9 / Cloudflare (as per the guide) that I am currently using? I know that with NextDNS you can login to an interface where there are options to filter specific types of content and various other configuration / security / privacy settings, whereas I don't think an interface with customisable configuration settings are available with Cloudflare / Quad9 ?

Thanks,
X195
 
  • Like
Reactions: simmerskool

Bot

AI-powered Bot
Apr 21, 2016
4,315
Hi X195,

1. Yes, using NextDNS as your upstream DNS could provide additional benefits. NextDNS allows you to customize your filtering preferences, block specific domains, and get detailed analytics about your DNS queries. It also supports DNS over HTTPS (DoH) and DNS over TLS (DoT), which can add an extra layer of privacy and security. However, keep in mind that NextDNS is not entirely free after a certain number of queries per month.

2. Cloudflare and Quad9 are still great options if you're looking for speed, reliability, and privacy. They might not offer the same level of customization as NextDNS, but they do provide robust security features.

Remember to consider your needs and preferences when choosing a DNS provider.

Best,
AdGuard Bot
 
  • Love
Reactions: Behold Eck

lokamoka820

Level 21
Mar 1, 2024
1,060
I think your questions are more personal preferences than being technical, you can use what fits your needs best, for me:
  1. I will go with default protection on DNS over HTTPS setting.
  2. I will go with the fastest DNS which is Cloudflare for me, although NextDNS offers more benefits, if you don't need them why to use it?
 

X195

Level 1
Thread author
Aug 31, 2023
17
Thanks for your reply (y)

I will go with default protection on DNS over HTTPS setting.

I wasn't sure if setting this in the browser would conflict against the setup with adguard / unbound that I've got setup already. Could you elaborate why you would set to this and how that would work with my current configuration?

I'm a bit confused about the correlation between these settings in the browser and the configuration in OPNsense / Adguard Home. If I set to something other than off, does that mean it will use something other than Adguard and Unbound ?

I will go with the fastest DNS

What's the easiest way to find out which is the fastest DNS for me?

Many Thanks
X195
 
  • Like
Reactions: simmerskool

Digmor Crusher

Level 24
Verified
Top Poster
Well-known
Jan 27, 2018
1,396
Thanks for your reply (y)



I wasn't sure if setting this in the browser would conflict against the setup with adguard / unbound that I've got setup already. Could you elaborate why you would set to this and how that would work with my current configuration?

I'm a bit confused about the correlation between these settings in the browser and the configuration in OPNsense / Adguard Home. If I set to something other than off, does that mean it will use something other than Adguard and Unbound ?



What's the easiest way to find out which is the fastest DNS for me?

Many Thanks
X195
Try this:
GRC's | DNS Nameserver Performance Benchmark
 

Brahman

Level 18
Verified
Top Poster
Well-known
Aug 22, 2013
883
When using this configuration, how should I set the DNS over HTTPS setting in my browser? I currently have is set to OFF (use your default DNS resolver). Does that sound correct or should I also enable DNS over HTTPS in the browser for additional security ?
Do not set DOH in your bowser. DNS over Https means all your DNS queries gets encrypted and sends to the preferred dns resolver via port 443. If you set doh in browser, no dns queries go to your router, all your router sees is "the encrypted traffic over port 443" and nothing else. So in such case no filtering takes place, which defeats your intended purpose of using adgurd plugin. Instead create a rule in opnsens to route all TCP and UDP traffic in port 53 ( all unencrypted dns queries comes through this port)to your adguard listening port.
You do not need nextdns with your setup, you can add as many blocklist to your adguard ( but the less is better) server and get the same protection as nextdns provides.
 

lokamoka820

Level 21
Mar 1, 2024
1,060
Thanks for your reply (y)
You are welcome.
I wasn't sure if setting this in the browser would conflict against the setup with adguard / unbound that I've got setup already. Could you elaborate why you would set to this and how that would work with my current configuration?

I'm a bit confused about the correlation between these settings in the browser and the configuration in OPNsense / Adguard Home. If I set to something other than off, does that mean it will use something other than Adguard and Unbound ?
Actually, it will act with "Default Protection" as "Off" with your setup, it will use AdGuard with both options.
What's the easiest way to find out which is the fastest DNS for me?
There are many tools, but I prefer DNS Jumper, it is simple and give you the ability to test, change and reset your DNS server.
 

X195

Level 1
Thread author
Aug 31, 2023
17
Do not set DOH in your bowser. DNS over Https means all your DNS queries gets encrypted and sends to the preferred dns resolver via port 443. If you set doh in browser, no dns queries go to your router, all your router sees is "the encrypted traffic over port 443" and nothing else. So in such case no filtering takes place, which defeats your intended purpose of using adgurd plugin. Instead create a rule in opnsens to route all TCP and UDP traffic in port 53 ( all unencrypted dns queries comes through this port)to your adguard listening port.
You do not need nextdns with your setup, you can add as many blocklist to your adguard ( but the less is better) server and get the same protection as nextdns provides.

I thought this was probably the case but just wanted to check that I wasn't somehow less secure / private by not enabling DoT in the browser in conjunction with the adguard > unbound configuration. This solves it thanks, I will leave the setting as OFF.

There are many tools, but I prefer DNS Jumper, it is simple and give you the ability to test, change and reset your DNS server.
Thanks I will check it out as well as the GRC one mentioned.
 
  • Like
Reactions: simmerskool

Chuck57

Level 12
Verified
Top Poster
Well-known
Oct 22, 2018
589
I, to the shock of many, decided a couple of days ago to try Portmaster. I've finally found a firewall I understand.

As for DNS, I've gone with Quad9, based on a YouTube video showing how to set up Portmaster. Quad9 was one of the top 3 in a list shown in the video. Cloudfare was not so great. The guy doing the video made no recommendations as to which. Might be worth watching.
 

TairikuOkami

Level 37
Verified
Top Poster
Content Creator
Well-known
May 13, 2017
2,628
based on a YouTube video showing how to set up Portmaster.
Pretty bold statement from him, that it is the best firewall, since you can not even set ports/IPs while pointing out basic DNS setup, which can be done in any normal firewall based on the port/IP.
 

Attachments

  • capture_09052024_082657.jpg
    capture_09052024_082657.jpg
    465.7 KB · Views: 58
  • Like
Reactions: Chuck57

Chuck57

Level 12
Verified
Top Poster
Well-known
Oct 22, 2018
589
I've been slowly fiddling with the various parts in it over the past couple of days. What I can say is, so far, the changes I've made work. I run Quad9.

As for it being "the best free firewall," everybody is entitled to their opinion. His belief is as good as anybody else's. It's like Muhammed Ali saying,, "I am the greatest." Was he? Others have different views on it.

I find it very good, so far. The best? That might be stretching it. Quite frankly, I wouldn't know how to set ports, etc in a firewall anyway. If checking a box didn't do it then it wouldn't get done.
 

simmerskool

Level 36
Verified
Top Poster
Well-known
Apr 16, 2017
2,547
I, to the shock of many, decided a couple of days ago to try Portmaster. I've finally found a firewall I understand.
OMG! I quickly skimmed Portmaster webpage the other day, I need to look again. Meanwhile I added Windows Firewall Control (WFC) to this win10_vm and actually started to read its user guide, interface looks simple, but UG is 51 pages. Does add some hardening to WF as I understand it. This vm has Emsisoft Business and their support said WFC not only compatible but also recommended WFC. :D
 

Chuck57

Level 12
Verified
Top Poster
Well-known
Oct 22, 2018
589
Portmaster also has a User Guide online too. I haven't looked at it, since I doubt I'd understand it. I just watched the video I posted and one or two others and went from there. From what I read prior to downloading it, Portmaster is pretty well set up in default mode and appears to only need a little tweaking depending on personal preference. I've ticked a couple of boxes, blocking a group of sites just to check, and they were blocked, so I guess it works.
 

TairikuOkami

Level 37
Verified
Top Poster
Content Creator
Well-known
May 13, 2017
2,628
Portmaster also has a User Guide online too. I haven't looked at it, since I doubt I'd understand it.
Yep, Portmaster is either too basic or too advanced, but I can not understand any of it, just like Sphinx.
 
  • Like
Reactions: sypqys

Chuck57

Level 12
Verified
Top Poster
Well-known
Oct 22, 2018
589
Yep, Portmaster is either too basic or too advanced, but I can not understand any of it, just like Sphinx.
That describes it, and not having the means or knowledge to play with it in a VM against malware, I'm guessing the comments I've found in various places are valid and that "default mode will be enough for most people.'

I have made some adjustments here and there but have left it mostly default.
 

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top