An Open DNS Resolver is a DNS server that responds to DNS queries from any IP address on the internet. This poses a serious security risk, as it can be exploited for DNS amplification DDoS attacks.
If your VPS operates as an open resolver, you may notice increased resource usage or receive an abuse report.
You can use the following recommended analysis tool to check this specific service and its behavior: https://dnsviz.net/
Your VPS is considered an open DNS resolver when:
You can check whether your DNS server responds to queries from external IP addresses using the following command:
dig @YOUR_SERVER_IP google.com
If you receive a response, then the DNS resolver is publicly accessible.
Check whether a DNS service such as BIND is running:
systemctl status named
If you are not using a DNS server on your VPS, it is recommended to disable it completely.
Open the BIND configuration file:
nano /etc/named.conf
or:
nano /etc/bind/named.conf.options
In the options section, ensure the following settings are present:
recursion no;
allow-query { localhost; };
Save the file and restart the service:
systemctl restart named
Even with proper DNS configuration, you must restrict access to port 53.
Example using iptables:
iptables -A INPUT -p udp --dport 53 ! -s 127.0.0.1 -j DROP
iptables -A INPUT -p tcp --dport 53 ! -s 127.0.0.1 -j DROP
Example using firewalld:
firewall-cmd --remove-service=dns --permanent
firewall-cmd --reload
If you are not using DNS:



This prevents the server from responding to recursive DNS queries.
If you do not require DNS:
If your VPS does not function as a DNS server:
This is the safest configuration.
Contact our experts, they will be happy to help!
Contact us