Currently, we use a Huawei LTE router at home. I recently noticed that DNS resolution got very slow. By default, an operating system like macOS uses the router as DNS server. The router itself proxies these DNS request to the DNS server of your ISP. So, it seemed like our ISP’s DNS server had some performance issues. The performance did not get better in the following days.
Therefore, I changed the DNS server - popular public alternatives are Cloudflare DNS & Google DNS. You can either change the DNS settings of your computer, but this means that DNS resolution for this specific device gets fixed. Better is to change the DNS settings on router level.
For our Huawei router, the DNS setting is hidden inside the “Advanced => DHCP” menu. On the “DHCP” page, open the web console (e.g. on macOS: Command + Option + I, then go to tab “Console”). Then, execute the command
$('#dhcp_dns').show();. Now, a checkbox “Set DNS server manually” should appear. When you enable it, you can set primary and secondary DNS servers. For example, for Cloudflare DNS, set these to
- Notes on Job & Career Development
- Adding full-text search to a static site (= no backend needed)
- Generating a random string on Linux & macOS
- Caddy web server: Why use it? How to use it?
- Tailwind CSS: A Primer
- Versicherungen: Learnings
- Screen Recording on macOS (without any extra tools)
- WSL2 Cheat Sheet
- Install Docker in WSL2 (Ubuntu) without Docker Desktop
- Converting a Slack message to Markdown