How to repair DNS resolution in Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem)



I know I should not be manually editing /etc/resolv.conf in 16.04



What package(s) can I reinstall to get DNS resolution back to the pristine state for 16.04?







share|improve this question



















  • You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
    – N0rbert
    2 hours ago






  • 1




    If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
    – Terrance
    1 hour ago
















up vote
1
down vote

favorite












Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem)



I know I should not be manually editing /etc/resolv.conf in 16.04



What package(s) can I reinstall to get DNS resolution back to the pristine state for 16.04?







share|improve this question



















  • You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
    – N0rbert
    2 hours ago






  • 1




    If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
    – Terrance
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem)



I know I should not be manually editing /etc/resolv.conf in 16.04



What package(s) can I reinstall to get DNS resolution back to the pristine state for 16.04?







share|improve this question











Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem)



I know I should not be manually editing /etc/resolv.conf in 16.04



What package(s) can I reinstall to get DNS resolution back to the pristine state for 16.04?









share|improve this question










share|improve this question




share|improve this question









asked 2 hours ago









flymike

1756




1756











  • You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
    – N0rbert
    2 hours ago






  • 1




    If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
    – Terrance
    1 hour ago
















  • You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
    – N0rbert
    2 hours ago






  • 1




    If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
    – Terrance
    1 hour ago















You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
– N0rbert
2 hours ago




You can try to run sudo dpkg-reconfigure resolvconf to repair symlink between /etc/resolv.conf and /run/resolvconf/resolv.conf as recommended in this answer.
– N0rbert
2 hours ago




1




1




If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
– Terrance
1 hour ago




If you need fixed DNS entries, you should be editing the files located in /etc/resolvconf/resolv.conf.d. I did my permanent DNS server entries in the original file located in that folder. Then when completed you should run sudo resolvconf -u to update the /etc/resolv.conf file.
– Terrance
1 hour ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062394%2fhow-to-repair-dns-resolution-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062394%2fhow-to-repair-dns-resolution-in-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?