- DNS issues after upgrading to 20.04
- 6 Answers 6
- Thread: How to no connectivity Ubuntu DNS problem [fix]
- How to no connectivity Ubuntu DNS problem [fix]
- Re: How to no connectivity Ubuntu DNS problem [fix]
- Re: How to no connectivity Ubuntu DNS problem [fix]
- Re: How to no connectivity Ubuntu DNS problem [fix]
- Re: How to no connectivity Ubuntu DNS problem [fix]
- Bookmarks
- Posting Permissions
DNS issues after upgrading to 20.04
After upgrading to 20.04, both my wired and wireless networking lost access to the internet. I confirmed my drivers were working when I was able to resolve a ping to the Google nameserver 8.8.8.8. Now, every time I reboot, I have to manually edit /etc/resolv.conf and add line: nameserver 8.8.8.8 I have been unable to get to a permanent resolution in both the network manager and netplan. IPV4 tab in network manager under DNS set to manual
network: version: 2 renderer: networkd ethernets: wlp58s0: dhcp4: true nameservers: addresses: [8.8.8.8, 8.8.4.4]
If someone could please advise me on how to get my DNS settings configured properly, I would greatly appreciate it. Thanks.
6 Answers 6
The following worked for me.
sudo systemd-resolve --set-dns=8.8.8.8 --interface=
E.g. sudo systemd-resolve —set-dns=8.8.8.8 —interface=eth0 .
In Ubuntu 20.04, the expected configuration of /etc/resolv.conf is to point to a local systemd-networkd resolver:
To check which upstream nameservers your local resolver is configured for, you can check the output of resolvectl status . This should show, for each of your network interfaces, the nameservers that have been associated.
You also show a netplan config that says to use the networkd renderer, but mention Network Manager in your question. If you are expecting your wireless interface to be manageable through NetworkManager, then you need to change this netplan config (or else, you have other netplan config already on your system that you didn’t list here).
Thread: How to no connectivity Ubuntu DNS problem [fix]
First Cup of Ubuntu
How to no connectivity Ubuntu DNS problem [fix]
I installed Ubuntu 17.04 and Ubuntu-Mate 17.04 and found i had no INTERNET access. It looked like a problem with DNS.
Here are some simple solutions to the problem:
Open a terminal and copy and paste the following:
sudo gedit /etc/resolvconf/resolv.conf.d/tail
Click Save and Restart your computer.
Open a terminal and copy and paste the following:
sudo gedit /etc/systemd/resolved.conf
Click Save and Restart your computer.
With Network-manager Click Edit Connections > Wired Connection > Edit > Ipv4 Settings > Method: Automatic (DHCP) address only > DNS servers add 8.8.8.8 > Click Save
Restart your Network Connection or restart your computer.
With this method, if the connection under «Network Connections» is deleted the user will no longer have INTERNET access so i would not recommended it. Choose method 1 or 2 instead.
Ubuntu addict and loving it
Re: How to no connectivity Ubuntu DNS problem [fix]
I installed Ubuntu Gnome 17.04 on a spare partition and wired internet did not work.
Method 2 in your post solved the difficulty.
First Cup of Ubuntu
Re: How to no connectivity Ubuntu DNS problem [fix]
Spilled the Beans
Re: How to no connectivity Ubuntu DNS problem [fix]
Spilled the Beans
Re: How to no connectivity Ubuntu DNS problem [fix]
The first method works like a charm. Thanks.
Can you give a briefly explanation about how it works?
- Site Areas
- Settings
- Private Messages
- Subscriptions
- Who’s Online
- Search Forums
- Forums Home
- Forums
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- General Help
- Installation & Upgrades
- Hardware
- Desktop Environments
- Networking & Wireless
- Multimedia Software
- Ubuntu Specialised Support
- Ubuntu Development Version
- Security
- Virtualisation
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- Ubuntu Cloud and Juju
- Gaming & Leisure
- Emulators
- Wine
- Development & Programming
- Packaging and Compiling Programs
- Development CD/DVD Image Testing
- Ubuntu Application Development
- Ubuntu Dev Link Forum
- Programming Talk
- Repositories & Backports
- Ubuntu Backports
- Bug Reports / Support
- Ubuntu Backports
- System76 Support
- Apple Hardware Users
- Ubuntu Community Discussions
- Ubuntu, Linux and OS Chat
- Recurring Discussions
- Full Circle Magazine
- The Cafe
- Cafe Games
- Market
- Mobile Technology Discussions (CLOSED)
- Announcements & News
- Weekly Newsletter
- Membership Applications
- The Fridge Discussions
- Forum Council Agenda
- Forum Feedback & Help
- Request a LoCo forum
- Resolution Centre
- Ubuntu, Linux and OS Chat
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Ubuntu/Debian BASED
- Debian
- MINT
- Arch and derivatives
- Fedora/RedHat and derivatives
- Mandriva/Mageia
- Slackware and derivatives
- openSUSE and SUSE Linux Enterprise
- Mac OSX
- PCLinuxOS
- Gentoo and derivatives
- Windows
- BSD
- Any Other OS
- Other Operating Systems
- Assistive Technology & Accessibility
- Art & Design
- Education & Science
- Documentation and Community Wiki Discussions
- Tutorials
- Outdated Tutorials & Tips
- Ubuntu Women
- Ubuntu LoCo Team Forums
- Americas LoCo Teams
- Argentina Team
- Software
- Hardware
- Comunidad
- Arizona Team — US
- Arkansas Team — US
- Brazil Team
- California Team — US
- Canada Team
- Centroamerica Team
- Chile Team
- Comunidad
- Hardware
- Software
- Instalaci�n y Actualizaci�n
- Colombia Team — Colombia
- Georgia Team — US
- Illinois Team
- Indiana — US
- Kentucky Team — US
- Maine Team — US
- Minnesota Team — US
- Mississippi Team — US
- Nebraska Team — US
- New Mexico Team — US
- New York — US
- North Carolina Team — US
- Ohio Team — US
- Oklahoma Team — US
- Oregon Team — US
- Pennsylvania Team — US
- Peru Team
- Texas Team — US
- Uruguay Team
- Utah Team — US
- Virginia Team — US
- West Virginia Team — US
- Argentina Team
- Asia and Oceania LoCo Teams
- Australia Team
- Bangladesh Team
- Hong Kong Team
- Myanmar Team
- Philippine Team
- Singapore Team
- Europe, Middle East, and African (EMEA) LoCo Teams
- Albania Team
- Catalan Team
- Portugal Team
- Egypt Team
- Georgia Team
- Ireland Team — Ireland
- Kenyan Team — Kenya
- Kurdish Team — Kurdistan
- Lebanon Team
- Morocco Team
- Saudi Arabia Team
- Sudan Team
- Tunisia Team
- Other Forums & Teams
- LoCo Archive
- Afghanistan Team
- Alabama Team — US
- Alaska Team — US
- Algerian Team
- Andhra Pradesh Team — India
- Austria Team
- Bangalore Team
- Bolivia Team
- Cameroon Team
- Colorado Team — US
- Connecticut Team
- Costa Rica Team
- Delhi Team
- Ecuador Team
- El Salvador Team
- Florida Team — US
- Galician LoCo Team
- Greek team
- Hawaii Team — US
- Honduras Team
- Idaho Team — US
- Iowa Team — US
- Jordan Team
- Kansas Team — US
- Libya Team
- Louisiana Team — US
- Maryland Team — US
- Massachusetts Team
- Michigan Team — US
- Missouri Team — US
- Montana Team — US
- Namibia Team
- Nevada Team — US
- New Hampshire Team — US
- New Jersey Team — US
- Northeastern Team — US
- Panama Team
- Paraguay Team
- Qatar Team
- Quebec Team
- Rhode Island Team — US
- Senegal Team
- South Carolina Team — US
- South Dakota Team — US
- Switzerland Team
- Tamil Team — India
- Tennessee Team — US
- Trinidad & Tobago Team
- Uganda Team
- United Kingdom Team
- US LoCo Teams
- Venezuela Team
- Wales Team
- Washington DC Team — US
- Washington State Team — US
- Wisconsin Team
- Yemen Team
- Za Team — South Africa
- Zimbabwe Team
- Americas LoCo Teams
- Other OS Support and Projects
- Ubuntu Official Flavours Support
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts