Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive DNS #2531

Closed
johnjgsmith opened this issue Jan 9, 2021 · 1 comment
Closed

Recursive DNS #2531

johnjgsmith opened this issue Jan 9, 2021 · 1 comment
Labels

Comments

@johnjgsmith
Copy link

Problem Description

VPS provider emailing me that I need to set up a recursive DNS as it was open to abuse. There were helpful suggestions in the email, but I thought it would be better if they were also in the Adguard KB or here on Github (if they are, then apologies, as I could not find it)

Proposed Solution

Update the KB or instructions on Github with the following which I received from my VPS provided) and make it more user friendly.

It is recommended that all public DNS servers (on a VPS for example) are configured to not permit recursive DNS queries. This configuration will still allow DNS for your domain names to work properly, but will prevent abuse
On Windows machines, you can disable recursive DNS:

  1. Open 'Server Manager'
  2. Expand Roles -> DNS Server -> DNS -> (Your Server's Name)
  3. Right click on your server name, choose Properties
  4. On the 'Advanced' tab, select 'Disable recursion (also disables forwarders)'
  5. Click OK

On Linux machines, there are a few common DNS servers:

BIND:

  1. Open your BIND configuration file
  2. In the 'options' section, make sure you have 'recursion no;' and 'additional-from-cache no;'
  3. Restart BIND after making any changes

DNSMasq:
Unfortunately, there is not a straight forward way to disable this within DNSMasq. You would either
need to modify the DNSMasq configuration so that it no longer listens on public IP addresses, or
firewall off UDP port 53 to all hosts except your desired ones.

@ameshkov
Copy link
Member

ameshkov commented Jan 9, 2021

Disabling recursive DNS means that your DNS server will not be able to serve any queries.

Please check out comments in this issue: #587

@ameshkov ameshkov closed this as completed Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants