Skip to content
CodeMemo
CodeMemo

Full-stack developer memories

  • Code of conduct
  • Privacy
  • Contact
CodeMemo
CodeMemo

Full-stack developer memories

  • Code of conduct
  • Privacy
  • Contact

Force Ubuntu to use DNS set via DHCP

2023-03-01 / dhcp, dns, networking, ubuntu

To remember when you install some ubuntu based distro

rm -rf /etc/resolv.conf
touch /etc/resolv.conf
sed -i 's/^dns.*/dns=default/g' /usr/lib/NetworkManager/conf.d/10-dns-resolved.conf
systemctl stop systemd-resolved && systemctl disable systemd-resolved

Tested on Kubuntu 22.04

Original post (to which all credits go)

https://ubuntuforums.org/showthread.php?t=2383575&p=13810143#post13810143

← Previous Post
Next Post →

NEWS

  • 2020-04-14
    GitHub is now free for teams

Tags

$PATH .NET Core .NET Framework angular bash cache continuous integration decorator dhcp dns docker docker-compose docker compose dotnet dotnet-ef events forms http ion-item ionic ionic page lifecycle jenkins linux msbuild networking nginx openvpn pipeline reactive forms routerLink routerLinkActive rxjs security sslv sslv3 tls typescript ubuntu validator vpn

SteamPunk pill

No Title

Thanks to The vault of the atomic space age

Copyright © 2025 CodeMemo | Powered by Astra WordPress Theme