I recently rebuilt my server onto Debian 9, and am having problems with URL resolution.
All I have done is changed my root password, and created an account (adduser sam) which has been added to the sudo group.
This user (sam) cannot resolve domains. The contents of /etc/resolv.conf are
nameserver: 8.8.8.8 nameserver: 8.8.4.4
To be clear, I have installed no packages or made any other changes, other than generating an SSH key for sam.
I tried creating a second user to see if that worked, but it didn’t
Also found that root user cannot complete an apt-get update as the name resolution for mirrors.digitalocean.com fail - however, it can ping google.com
I’ve tried rebooting, but no joy - is there some kind of network issue or something?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In my experience, all freshly created droplets have working internet connection without the need of fiddling with resolv.conf. Do you experience the same problem even with newborn droplets?
If instead you wish to change nameservers for whatever reason, your /etc/resolv.conf is wrong. Check out the Debian documentation about resolv.conf: there are no columns after “nameserver” (or after any other field you can set with resolv.conf for that matter).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.