How do I make resolv.conf work the old way on modern Linux distributions?pxe boot: problems with...
What is the hex versus octal timeline?
If I have a 16.67% fail rate (N=24) & I do another 24 tests, what is the likelihood that I get 0 fails by chance?
Is “I am getting married with my sister” ambiguous?
Can pay be witheld for hours cleaning up after closing time?
Would it be possible to have a GMO that produces chocolate?
How is "sein" conjugated in this sub-sentence?
How do I find the fastest route from Heathrow to an address in London using all forms of transport?
Efficiently pathfinding many flocking enemies around obstacles
What is the appropriate benchmark for a Long/Short VIX futures strategy?
Fancy String Replace
Science fiction short story where aliens contact a drunk about Earth's impending destruction
Are required indicators necessary for radio buttons?
How to dismiss intrusive questions from a colleague with whom I don't work?
Three Singles in Three Clubs
Justifying the use of directed energy weapons
Was Switzerland really impossible to invade during WW2?
How can I watch the 17th (or last, if less) line in files of a folder?
In an emergency, how do I find and share my position?
Script that helps people make better choices
How to persuade recruiters to send me the Job Description?
Is it insecure to have an ansible user with passwordless sudo?
Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?
Is refusing to concede in the face of an unstoppable Nexus combo punishable?
On the feasibility of space battleships
How do I make resolv.conf work the old way on modern Linux distributions?
pxe boot: problems with /etc/resolv.confWhere to locate resolv.conf file in CentOS 7How are the entries in resolv.conf automatically added?Can not set static DNS on debianDhclient not updating /etc/resolv.confLocal (127.0.1.1) DNS resolver ignores LAN DNS server
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
In /etc/resolv.conf
on modern distros link Mint 17 and Ubuntu 16, there's a warning:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
How do I make resolv.conf work the old way so that I can edit this file by hand, without any other program or process overwriting it?
ubuntu linux-mint dns resolv.conf
add a comment |
In /etc/resolv.conf
on modern distros link Mint 17 and Ubuntu 16, there's a warning:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
How do I make resolv.conf work the old way so that I can edit this file by hand, without any other program or process overwriting it?
ubuntu linux-mint dns resolv.conf
add a comment |
In /etc/resolv.conf
on modern distros link Mint 17 and Ubuntu 16, there's a warning:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
How do I make resolv.conf work the old way so that I can edit this file by hand, without any other program or process overwriting it?
ubuntu linux-mint dns resolv.conf
In /etc/resolv.conf
on modern distros link Mint 17 and Ubuntu 16, there's a warning:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
How do I make resolv.conf work the old way so that I can edit this file by hand, without any other program or process overwriting it?
ubuntu linux-mint dns resolv.conf
ubuntu linux-mint dns resolv.conf
asked Jun 28 '17 at 14:02
NickNick
3892 gold badges10 silver badges21 bronze badges
3892 gold badges10 silver badges21 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
As an alternative, you can specify base DNS servers for resolvconf at /etc/resolvconf/resolv.conf.d/base
, which won't be overwritten. It uses the same syntax. That way you can keep running Ubuntu or Mint the default way. Then tell resolvconf to regenerate resolv.conf
with sudo resolvconf -u
.
However, you can remove resolvconf:
sudo apt-get remove resolvconf
. It is safe to do so. Then write your desired DNS resolvers into /etc/resolv.conf
.
You may not be able to use DNS management features in other programs that automatically manage your network (networkmanager) anymore.
3
If you're uncomfortable with removing theresolvconf
package, remove/etc/resolv.conf
(on systems with theresolvconf
package it will be a symlink to/run/resolvconf/resolv.conf
) and create the file with the contents you desire.
– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373932%2fhow-do-i-make-resolv-conf-work-the-old-way-on-modern-linux-distributions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As an alternative, you can specify base DNS servers for resolvconf at /etc/resolvconf/resolv.conf.d/base
, which won't be overwritten. It uses the same syntax. That way you can keep running Ubuntu or Mint the default way. Then tell resolvconf to regenerate resolv.conf
with sudo resolvconf -u
.
However, you can remove resolvconf:
sudo apt-get remove resolvconf
. It is safe to do so. Then write your desired DNS resolvers into /etc/resolv.conf
.
You may not be able to use DNS management features in other programs that automatically manage your network (networkmanager) anymore.
3
If you're uncomfortable with removing theresolvconf
package, remove/etc/resolv.conf
(on systems with theresolvconf
package it will be a symlink to/run/resolvconf/resolv.conf
) and create the file with the contents you desire.
– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
add a comment |
As an alternative, you can specify base DNS servers for resolvconf at /etc/resolvconf/resolv.conf.d/base
, which won't be overwritten. It uses the same syntax. That way you can keep running Ubuntu or Mint the default way. Then tell resolvconf to regenerate resolv.conf
with sudo resolvconf -u
.
However, you can remove resolvconf:
sudo apt-get remove resolvconf
. It is safe to do so. Then write your desired DNS resolvers into /etc/resolv.conf
.
You may not be able to use DNS management features in other programs that automatically manage your network (networkmanager) anymore.
3
If you're uncomfortable with removing theresolvconf
package, remove/etc/resolv.conf
(on systems with theresolvconf
package it will be a symlink to/run/resolvconf/resolv.conf
) and create the file with the contents you desire.
– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
add a comment |
As an alternative, you can specify base DNS servers for resolvconf at /etc/resolvconf/resolv.conf.d/base
, which won't be overwritten. It uses the same syntax. That way you can keep running Ubuntu or Mint the default way. Then tell resolvconf to regenerate resolv.conf
with sudo resolvconf -u
.
However, you can remove resolvconf:
sudo apt-get remove resolvconf
. It is safe to do so. Then write your desired DNS resolvers into /etc/resolv.conf
.
You may not be able to use DNS management features in other programs that automatically manage your network (networkmanager) anymore.
As an alternative, you can specify base DNS servers for resolvconf at /etc/resolvconf/resolv.conf.d/base
, which won't be overwritten. It uses the same syntax. That way you can keep running Ubuntu or Mint the default way. Then tell resolvconf to regenerate resolv.conf
with sudo resolvconf -u
.
However, you can remove resolvconf:
sudo apt-get remove resolvconf
. It is safe to do so. Then write your desired DNS resolvers into /etc/resolv.conf
.
You may not be able to use DNS management features in other programs that automatically manage your network (networkmanager) anymore.
edited 2 days ago
answered Jun 28 '17 at 15:49
Rachel FreiRachel Frei
4043 silver badges6 bronze badges
4043 silver badges6 bronze badges
3
If you're uncomfortable with removing theresolvconf
package, remove/etc/resolv.conf
(on systems with theresolvconf
package it will be a symlink to/run/resolvconf/resolv.conf
) and create the file with the contents you desire.
– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
add a comment |
3
If you're uncomfortable with removing theresolvconf
package, remove/etc/resolv.conf
(on systems with theresolvconf
package it will be a symlink to/run/resolvconf/resolv.conf
) and create the file with the contents you desire.
– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
3
3
If you're uncomfortable with removing the
resolvconf
package, remove /etc/resolv.conf
(on systems with the resolvconf
package it will be a symlink to /run/resolvconf/resolv.conf
) and create the file with the contents you desire.– Deathgrip
Jun 28 '17 at 16:27
If you're uncomfortable with removing the
resolvconf
package, remove /etc/resolv.conf
(on systems with the resolvconf
package it will be a symlink to /run/resolvconf/resolv.conf
) and create the file with the contents you desire.– Deathgrip
Jun 28 '17 at 16:27
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
@Deathgrip: That's what I've done before, I but couldn't remember what it was that I did. Removing resolvconf is also a good solution.
– Nick
Jul 3 '17 at 0:09
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373932%2fhow-do-i-make-resolv-conf-work-the-old-way-on-modern-linux-distributions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown