how to update dns after a changing resolvconf

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








up vote
0
down vote

favorite












I need to edit my system's dns nameservers, without rebooting, on a system i believe uses resolveconf. The changes i make to /etc/resolvconf/resolve.conf.d/base ARE reflected on full reboot, but I need to update the local dns nameservers without rebooting. On ubuntu16.04



As I've understood the docs, my system uses resolvconf, and my /etc/resolv.conf file is autogenerated from /etc/resolvconf/resolv.conf.d/base (as well as head and tail). I edited base and need to get my system to use the new nameservers.



All the answers I've found seem to direct me to sudo resolvconf -u and (possibly) restart the network-manager service. From the man page i also tried --enable-udpates and re-running the -u.



None of my changes in base seem to be reflected in resolve.conf after these steps, and nslookup is using the former contents.



How do i update my system to use the new dns servers I'm trying to set (and, if my statements above about what ubuntu uses are wrong or incomplete, please correct me!)



Thank you!










share|improve this question





















  • If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
    – JonnyTischbein
    Apr 9 at 18:38










  • @JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
    – mike
    Apr 9 at 18:54














up vote
0
down vote

favorite












I need to edit my system's dns nameservers, without rebooting, on a system i believe uses resolveconf. The changes i make to /etc/resolvconf/resolve.conf.d/base ARE reflected on full reboot, but I need to update the local dns nameservers without rebooting. On ubuntu16.04



As I've understood the docs, my system uses resolvconf, and my /etc/resolv.conf file is autogenerated from /etc/resolvconf/resolv.conf.d/base (as well as head and tail). I edited base and need to get my system to use the new nameservers.



All the answers I've found seem to direct me to sudo resolvconf -u and (possibly) restart the network-manager service. From the man page i also tried --enable-udpates and re-running the -u.



None of my changes in base seem to be reflected in resolve.conf after these steps, and nslookup is using the former contents.



How do i update my system to use the new dns servers I'm trying to set (and, if my statements above about what ubuntu uses are wrong or incomplete, please correct me!)



Thank you!










share|improve this question





















  • If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
    – JonnyTischbein
    Apr 9 at 18:38










  • @JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
    – mike
    Apr 9 at 18:54












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I need to edit my system's dns nameservers, without rebooting, on a system i believe uses resolveconf. The changes i make to /etc/resolvconf/resolve.conf.d/base ARE reflected on full reboot, but I need to update the local dns nameservers without rebooting. On ubuntu16.04



As I've understood the docs, my system uses resolvconf, and my /etc/resolv.conf file is autogenerated from /etc/resolvconf/resolv.conf.d/base (as well as head and tail). I edited base and need to get my system to use the new nameservers.



All the answers I've found seem to direct me to sudo resolvconf -u and (possibly) restart the network-manager service. From the man page i also tried --enable-udpates and re-running the -u.



None of my changes in base seem to be reflected in resolve.conf after these steps, and nslookup is using the former contents.



How do i update my system to use the new dns servers I'm trying to set (and, if my statements above about what ubuntu uses are wrong or incomplete, please correct me!)



Thank you!










share|improve this question













I need to edit my system's dns nameservers, without rebooting, on a system i believe uses resolveconf. The changes i make to /etc/resolvconf/resolve.conf.d/base ARE reflected on full reboot, but I need to update the local dns nameservers without rebooting. On ubuntu16.04



As I've understood the docs, my system uses resolvconf, and my /etc/resolv.conf file is autogenerated from /etc/resolvconf/resolv.conf.d/base (as well as head and tail). I edited base and need to get my system to use the new nameservers.



All the answers I've found seem to direct me to sudo resolvconf -u and (possibly) restart the network-manager service. From the man page i also tried --enable-udpates and re-running the -u.



None of my changes in base seem to be reflected in resolve.conf after these steps, and nslookup is using the former contents.



How do i update my system to use the new dns servers I'm trying to set (and, if my statements above about what ubuntu uses are wrong or incomplete, please correct me!)



Thank you!







16.04 dns resolvconf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 9 at 18:03









mike

1638




1638











  • If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
    – JonnyTischbein
    Apr 9 at 18:38










  • @JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
    – mike
    Apr 9 at 18:54
















  • If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
    – JonnyTischbein
    Apr 9 at 18:38










  • @JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
    – mike
    Apr 9 at 18:54















If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
– JonnyTischbein
Apr 9 at 18:38




If you're using the network-manager, have you tried to set up the DNS server in the network manager config ? Under Ubuntu when editing a connection in the IPv4/6 tab: "Additional DNS Server". Just reconnect after saving.
– JonnyTischbein
Apr 9 at 18:38












@JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
– mike
Apr 9 at 18:54




@JonnyTischbein - when i open 'network connections' it appears to reflect resolve.conf. since ubuntu uses resolveconf, this will be overwritten. As mentioned, this only seems to be happening on reboot, so I can manually edit resolve.conf with the needed changes (which then take effect immediately). It does not, obvously, persist though which is the problem
– mike
Apr 9 at 18:54















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%2f1023412%2fhow-to-update-dns-after-a-changing-resolvconf%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%2f1023412%2fhow-to-update-dns-after-a-changing-resolvconf%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491