r/linux4noobs•
ke151

[Fedora 33] Rate limit or slow down DNS queries?

Hi all, got a weird one here! Yes, you read the title right, I'm looking to decrease DNS performance on my laptop.

The Issue: My laptop recently has been able to "DDoS" my own modem by sending a huge amount of DNS requests (like 3k in <1min). Or at least, I believe that is what is happening. This laptop when booting Linux is the only thing that can kill my modem. All other devices on the network, or this same machine booting Windows, does not have the same issue.

Previously I did not have this problem; it looks like F33 may have migrated to systemd-resolved for DNS stuff. At a glance, I couldn't find anything to help with rate limiting. I am also running PiHole on top of Debian but didn't find any luck there either.

Thanks in advance for any suggestions or input!

EDIT: I followed the steps here https://fedoraproject.org/wiki/Changes/systemd-resolved to disable and return to classic resolv.conf behavior, seems to have fixed the problem.

If you do not wish to use systemd-resolved, then manual intervention will be required to disable it:

Disable and stop systemd-resolved.service. Delete /etc/resolv.conf Restart the NetworkManager service. NetworkManager will then create a traditional /etc/resolv.conf. (If you are not using >NetworkManager, you may create your own /etc/resolv.conf and configure it to your liking.)

Posted Dec 14, 2020, 2:03 PM UTC · edited

62
waitwaitno•

How is your pihole set up? Is it the default DNS for your network? Is Fedorah using network default DNS or a manual option?

3
ke151OP•

Hi, I have my PiHole running on a server.

It is set as default DNS on my router so all devices that listen use it as DNS.

Fedora is at least partially using PiHole as I see the DNS queries from my laptop's IP address hitting.

However, getting bogged down trying to confirm settings - my /etc/resolv.conf now contains nameserver 127.0.0.53 which I think points to the systemd stub resolver.

The config file /etc/systemd/resolved.conf has DNS=192.168.2.15, which is the IP address of my server running PiHole.

1