Too long, didn't read
If you use systemd-resolved
and are dealing with a single wireless network device,
sudo dhclient -r wlan0
sudo systemd-resolve --flush-caches
sudo systemctl restart systemd-resolved
sudo dhclient wlan0
This translates to:
- Release lease on target network device
- Flush DNS cache
- Restart DNS resolution service
- Request a new lease on target network device
You may not already have dhclient
; it's just a controller, not a service, so installing it after the fact will still work.
Wait, that's it?
Well, no. This is why I provided the translation: If you don't use the specific tools or services that I do, you can still go looking for those four translated instructions as they apply to your DNS service and its interactions with your local DHCP server.
You see, my first instinct to figure this out was to google it, but that turned up a dozen different low-context answers, all spread across fifteen years of changes to the Linux network stack. I spent 45 minutes answering