DNS not working in recovery terminal mode











up vote
0
down vote

favorite












In the process of upgrading to the latest Ubuntu 18 build, I am now stuck working in recovery terminal mode trying to reinstall GDM3 and ubuntu-desktop. problem is I can ping outside IP addresses, but cannot resolve names (ie. when running apt-get install it will not resolve us.archives.ubuntu.com) I have input 3 dns nameservers in my Wired Connection 1 file in NetworkManager. Rebooted and still cannot resolve names. THoughts?










share|improve this question






















  • Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
    – heynnema
    Nov 27 at 15:01












  • @Joshua Mozdzier Let us know if you solved the problem. If yes how.
    – Hobbyist
    Nov 28 at 12:38















up vote
0
down vote

favorite












In the process of upgrading to the latest Ubuntu 18 build, I am now stuck working in recovery terminal mode trying to reinstall GDM3 and ubuntu-desktop. problem is I can ping outside IP addresses, but cannot resolve names (ie. when running apt-get install it will not resolve us.archives.ubuntu.com) I have input 3 dns nameservers in my Wired Connection 1 file in NetworkManager. Rebooted and still cannot resolve names. THoughts?










share|improve this question






















  • Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
    – heynnema
    Nov 27 at 15:01












  • @Joshua Mozdzier Let us know if you solved the problem. If yes how.
    – Hobbyist
    Nov 28 at 12:38













up vote
0
down vote

favorite









up vote
0
down vote

favorite











In the process of upgrading to the latest Ubuntu 18 build, I am now stuck working in recovery terminal mode trying to reinstall GDM3 and ubuntu-desktop. problem is I can ping outside IP addresses, but cannot resolve names (ie. when running apt-get install it will not resolve us.archives.ubuntu.com) I have input 3 dns nameservers in my Wired Connection 1 file in NetworkManager. Rebooted and still cannot resolve names. THoughts?










share|improve this question













In the process of upgrading to the latest Ubuntu 18 build, I am now stuck working in recovery terminal mode trying to reinstall GDM3 and ubuntu-desktop. problem is I can ping outside IP addresses, but cannot resolve names (ie. when running apt-get install it will not resolve us.archives.ubuntu.com) I have input 3 dns nameservers in my Wired Connection 1 file in NetworkManager. Rebooted and still cannot resolve names. THoughts?







dns data-recovery






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 27 at 12:34









Joshua Mozdzier

1




1












  • Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
    – heynnema
    Nov 27 at 15:01












  • @Joshua Mozdzier Let us know if you solved the problem. If yes how.
    – Hobbyist
    Nov 28 at 12:38


















  • Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
    – heynnema
    Nov 27 at 15:01












  • @Joshua Mozdzier Let us know if you solved the problem. If yes how.
    – Hobbyist
    Nov 28 at 12:38
















Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
– heynnema
Nov 27 at 15:01






Did you switch OFF the DNS AUTO setting in your Wired Connection? What are the contents of an unmodified /etc/resolv.conf? Are you running dnsmasq AND systemd-resolve?
– heynnema
Nov 27 at 15:01














@Joshua Mozdzier Let us know if you solved the problem. If yes how.
– Hobbyist
Nov 28 at 12:38




@Joshua Mozdzier Let us know if you solved the problem. If yes how.
– Hobbyist
Nov 28 at 12:38










1 Answer
1






active

oldest

votes

















up vote
1
down vote













This helped me in a similar situation.



As Official Ubuntu Documentation says:




If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.




This will only work for this session and you can reinstall GDM3 and ubuntu-desktop. The file will be overwritten on reboot. So check the DNS settings after reboot in graphic mode.



CMD:



cat /etc/resolv.conf


If no DNS in there try:



echo "nameserver 8.8.8.8" >/etc/resolv.conf


This worked for me in a situation like this.



If you want changes to persist see this.






share|improve this answer



















  • 1




    /etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
    – heynnema
    Nov 27 at 15:05










  • @heynnema edited as suggested.
    – Hobbyist
    Nov 28 at 12:24










  • @heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
    – Andrea Lazzarotto
    Nov 29 at 10:06










  • @AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
    – heynnema
    Nov 29 at 14:25










  • @heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
    – Andrea Lazzarotto
    Nov 29 at 16:49











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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096474%2fdns-not-working-in-recovery-terminal-mode%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








up vote
1
down vote













This helped me in a similar situation.



As Official Ubuntu Documentation says:




If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.




This will only work for this session and you can reinstall GDM3 and ubuntu-desktop. The file will be overwritten on reboot. So check the DNS settings after reboot in graphic mode.



CMD:



cat /etc/resolv.conf


If no DNS in there try:



echo "nameserver 8.8.8.8" >/etc/resolv.conf


This worked for me in a situation like this.



If you want changes to persist see this.






share|improve this answer



















  • 1




    /etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
    – heynnema
    Nov 27 at 15:05










  • @heynnema edited as suggested.
    – Hobbyist
    Nov 28 at 12:24










  • @heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
    – Andrea Lazzarotto
    Nov 29 at 10:06










  • @AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
    – heynnema
    Nov 29 at 14:25










  • @heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
    – Andrea Lazzarotto
    Nov 29 at 16:49















up vote
1
down vote













This helped me in a similar situation.



As Official Ubuntu Documentation says:




If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.




This will only work for this session and you can reinstall GDM3 and ubuntu-desktop. The file will be overwritten on reboot. So check the DNS settings after reboot in graphic mode.



CMD:



cat /etc/resolv.conf


If no DNS in there try:



echo "nameserver 8.8.8.8" >/etc/resolv.conf


This worked for me in a situation like this.



If you want changes to persist see this.






share|improve this answer



















  • 1




    /etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
    – heynnema
    Nov 27 at 15:05










  • @heynnema edited as suggested.
    – Hobbyist
    Nov 28 at 12:24










  • @heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
    – Andrea Lazzarotto
    Nov 29 at 10:06










  • @AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
    – heynnema
    Nov 29 at 14:25










  • @heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
    – Andrea Lazzarotto
    Nov 29 at 16:49













up vote
1
down vote










up vote
1
down vote









This helped me in a similar situation.



As Official Ubuntu Documentation says:




If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.




This will only work for this session and you can reinstall GDM3 and ubuntu-desktop. The file will be overwritten on reboot. So check the DNS settings after reboot in graphic mode.



CMD:



cat /etc/resolv.conf


If no DNS in there try:



echo "nameserver 8.8.8.8" >/etc/resolv.conf


This worked for me in a situation like this.



If you want changes to persist see this.






share|improve this answer














This helped me in a similar situation.



As Official Ubuntu Documentation says:




If you require DNS for your temporary network configuration, you can add DNS server IP addresses in the file /etc/resolv.conf. In general, editing /etc/resolv.conf directly is not recommanded, but this is a temporary and non-persistent configuration.




This will only work for this session and you can reinstall GDM3 and ubuntu-desktop. The file will be overwritten on reboot. So check the DNS settings after reboot in graphic mode.



CMD:



cat /etc/resolv.conf


If no DNS in there try:



echo "nameserver 8.8.8.8" >/etc/resolv.conf


This worked for me in a situation like this.



If you want changes to persist see this.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 28 at 15:15

























answered Nov 27 at 12:46









Hobbyist

1,148617




1,148617








  • 1




    /etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
    – heynnema
    Nov 27 at 15:05










  • @heynnema edited as suggested.
    – Hobbyist
    Nov 28 at 12:24










  • @heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
    – Andrea Lazzarotto
    Nov 29 at 10:06










  • @AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
    – heynnema
    Nov 29 at 14:25










  • @heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
    – Andrea Lazzarotto
    Nov 29 at 16:49














  • 1




    /etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
    – heynnema
    Nov 27 at 15:05










  • @heynnema edited as suggested.
    – Hobbyist
    Nov 28 at 12:24










  • @heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
    – Andrea Lazzarotto
    Nov 29 at 10:06










  • @AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
    – heynnema
    Nov 29 at 14:25










  • @heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
    – Andrea Lazzarotto
    Nov 29 at 16:49








1




1




/etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
– heynnema
Nov 27 at 15:05




/etc/resolv.conf should not be edited/modified manually. It says so right in the file itself. Whatever you manually place there will get overwritten.
– heynnema
Nov 27 at 15:05












@heynnema edited as suggested.
– Hobbyist
Nov 28 at 12:24




@heynnema edited as suggested.
– Hobbyist
Nov 28 at 12:24












@heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
– Andrea Lazzarotto
Nov 29 at 10:06




@heynnema it does not matter, as this answer solves the question exactly. While you are in recovery mode you get to use the Google DNS, then you can reboot and your temporary change gets correctly reverted.
– Andrea Lazzarotto
Nov 29 at 10:06












@AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
– heynnema
Nov 29 at 14:25




@AndreaLazzarotto it doesn't solve why the DNS problem in the first place. If you note my comment to the original question... which never got a reply... was that OP set DNS addresses in the GUI for Wired Connection, but probably forgot to set AUTO to OFF. Another possibility is that OP is runing dnsmasq and systemd-resolve at the same time... without editing a certain pref... and DNS probably won't work then either. I'd wager that after reinstalling gdm3 and ubuntu-desktop and rebooting, that the DNS problem still exists.
– heynnema
Nov 29 at 14:25












@heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
– Andrea Lazzarotto
Nov 29 at 16:49




@heynnema I can relate on the fact that DNS almost never works in recovery mode (but it does while booting normally). This is probably due to the recovery mode being a stripped down boot that does not start all services. Hence a temporary fix might be exactly what is needed.
– Andrea Lazzarotto
Nov 29 at 16:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096474%2fdns-not-working-in-recovery-terminal-mode%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei