How long before they try and block <a href="https://root-servers.org/" rel="nofollow">https://root-servers.org/</a><p>or this is illegal:<p>Install dnsmasq if it's not already installed on your system.<p>Edit the dnsmasq configuration file, typically located at /etc/dnsmasq.conf.<p>Specify the root servers. You can find the current list of root servers from resources like the InterNIC website or the root-servers.org website. Add each root server to the configuration file using the server option:<p><pre><code> server=/root-servers.net/
server=198.41.0.4 # a.root-servers.net
server=199.9.14.201 # b.root-servers.net
server=192.33.4.12 # c.root-servers.net
...
</code></pre>
Replace the IP addresses with the actual IP addresses of the root servers.<p>Disable cache and no-resolv. Since you want dnsmasq to only query the root servers, you should disable caching and make sure dnsmasq does not read any other resolv file:<p><pre><code> no-resolv
cache-size=0
</code></pre>
Restart dnsmasq to apply the changes:<p><pre><code> sudo systemctl restart dnsmasq
</code></pre>
Test the configuration. Use dig or nslookup to test that your DNS queries are being resolved correctly.