DNS cannot resolve hosts
I recently upgraded my ubuntu and suddenly lost DNS. By the looks of it, its related to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532. But I cannot run the update to fix the issue because it can't use DNS to conduct the update. Is there any documentation out there on how to get the DNS working again so i can run the update and fix the issue? I have tried changing the DNS server and everything and nothing is working.
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
dpkg -l dns | grep ii
ii avahi-dns confd 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi DNS configuration tool
ii dnsmasq-base 2.75-1ubuntu0.16.04.1 amd64 Small caching DNS proxy and DHCP/TFTP Server
ii dnsutils 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Clients Provided with BIND
ii libavahi-compact-libdnssd1:amd64 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi Apple Bonjour compatibility library
ii libdns-export162 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Exported DNS Shared Library
ii libdns162:amd64 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 DNS Shared Library used by BIND
ii libnss-mdns:amd64 0.10-7 amd64 NSS Module for Multicast DNS name resolution
host -v www.apple.com
Trying "www.apple.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1102
;; flags: qr rd ra; QUERY: 1; ANSWER: 4; AUTHORITY: 0, ADDITIONAL: 0
;;QUESTION SECTION:
;www.apple.com. IN A
;;ANSWER SECTION:
www.apple.com. 1126 IN CNAME www.apple.com.edgekey.net.
www.apple.com.edgekey.net. 21568 IN CNAME www.apple.com.edgekey.net.globalredir.akadns.net
www.apple.com.edgekey.net.globalredir.akadns.net. 3599 IN CNAME e6858.dsce9.akamaiedge.net
e6858.dsce9.akamaiedge.net. 19 IN A 172.226.108.101
Received 182 bytes from 8.8.8.8#53 in 152 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:428
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY:0, ADDITIONAL: 0
;;QUESTION SECTION
;e6858.dsce9.akamaiedge.net. IN AAAA
;;ANSWER SECTION:
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
Received 100 bytes from 8.8.8.8#53 in 70 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:34978
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY:1, ADDITIONAL: 0
;;QUESTION SECTION:
;e6858.dsce9.akamaiedge.net. IN MX
;;AUTHORITY SECITON:
dsce9.akamaiedge.net. 179 IN SOA n0dsce9.akamaiedge.net. hostmaster.akamai.com. 1490629947 1000 1000 1000 1800
Received 109 bytes from 8.8.8.8#53 in 32 ms
dpkg -l | grep libc6
ii libc6:amd64 2.23-0ubuntu7 amd64 GNU C Library: Shared Libraries
ii libc6-dev:amd64 2.23-0ubuntu7 amd64 GNU C Library: Development Libraries and Header Files
networking dns glibc
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 3 more comments
I recently upgraded my ubuntu and suddenly lost DNS. By the looks of it, its related to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532. But I cannot run the update to fix the issue because it can't use DNS to conduct the update. Is there any documentation out there on how to get the DNS working again so i can run the update and fix the issue? I have tried changing the DNS server and everything and nothing is working.
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
dpkg -l dns | grep ii
ii avahi-dns confd 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi DNS configuration tool
ii dnsmasq-base 2.75-1ubuntu0.16.04.1 amd64 Small caching DNS proxy and DHCP/TFTP Server
ii dnsutils 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Clients Provided with BIND
ii libavahi-compact-libdnssd1:amd64 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi Apple Bonjour compatibility library
ii libdns-export162 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Exported DNS Shared Library
ii libdns162:amd64 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 DNS Shared Library used by BIND
ii libnss-mdns:amd64 0.10-7 amd64 NSS Module for Multicast DNS name resolution
host -v www.apple.com
Trying "www.apple.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1102
;; flags: qr rd ra; QUERY: 1; ANSWER: 4; AUTHORITY: 0, ADDITIONAL: 0
;;QUESTION SECTION:
;www.apple.com. IN A
;;ANSWER SECTION:
www.apple.com. 1126 IN CNAME www.apple.com.edgekey.net.
www.apple.com.edgekey.net. 21568 IN CNAME www.apple.com.edgekey.net.globalredir.akadns.net
www.apple.com.edgekey.net.globalredir.akadns.net. 3599 IN CNAME e6858.dsce9.akamaiedge.net
e6858.dsce9.akamaiedge.net. 19 IN A 172.226.108.101
Received 182 bytes from 8.8.8.8#53 in 152 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:428
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY:0, ADDITIONAL: 0
;;QUESTION SECTION
;e6858.dsce9.akamaiedge.net. IN AAAA
;;ANSWER SECTION:
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
Received 100 bytes from 8.8.8.8#53 in 70 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:34978
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY:1, ADDITIONAL: 0
;;QUESTION SECTION:
;e6858.dsce9.akamaiedge.net. IN MX
;;AUTHORITY SECITON:
dsce9.akamaiedge.net. 179 IN SOA n0dsce9.akamaiedge.net. hostmaster.akamai.com. 1490629947 1000 1000 1000 1800
Received 109 bytes from 8.8.8.8#53 in 32 ms
dpkg -l | grep libc6
ii libc6:amd64 2.23-0ubuntu7 amd64 GNU C Library: Shared Libraries
ii libc6-dev:amd64 2.23-0ubuntu7 amd64 GNU C Library: Development Libraries and Header Files
networking dns glibc
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Edit your question to include theterminal
output ofcat /etc/resolv.conf
andcat /etc/NetworkManager/NetworkManager.conf
anddpkg -l *dns* | grep ii
andhost -v www.apple.com
.
– heynnema
Mar 27 '17 at 15:23
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output fromterminal
. Please don't use the comments to try and paste that info into. Thanks.
– heynnema
Mar 27 '17 at 15:30
Please paste also the output ofdpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.
– fkraiem
Mar 27 '17 at 16:30
Right, you have the latest version oflibc6
, so you are not affected by this bug. Iflibc6
was upgraded from the affected version, however, a reboot may be necessary.
– fkraiem
Mar 27 '17 at 16:50
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21
|
show 3 more comments
I recently upgraded my ubuntu and suddenly lost DNS. By the looks of it, its related to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532. But I cannot run the update to fix the issue because it can't use DNS to conduct the update. Is there any documentation out there on how to get the DNS working again so i can run the update and fix the issue? I have tried changing the DNS server and everything and nothing is working.
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
dpkg -l dns | grep ii
ii avahi-dns confd 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi DNS configuration tool
ii dnsmasq-base 2.75-1ubuntu0.16.04.1 amd64 Small caching DNS proxy and DHCP/TFTP Server
ii dnsutils 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Clients Provided with BIND
ii libavahi-compact-libdnssd1:amd64 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi Apple Bonjour compatibility library
ii libdns-export162 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Exported DNS Shared Library
ii libdns162:amd64 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 DNS Shared Library used by BIND
ii libnss-mdns:amd64 0.10-7 amd64 NSS Module for Multicast DNS name resolution
host -v www.apple.com
Trying "www.apple.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1102
;; flags: qr rd ra; QUERY: 1; ANSWER: 4; AUTHORITY: 0, ADDITIONAL: 0
;;QUESTION SECTION:
;www.apple.com. IN A
;;ANSWER SECTION:
www.apple.com. 1126 IN CNAME www.apple.com.edgekey.net.
www.apple.com.edgekey.net. 21568 IN CNAME www.apple.com.edgekey.net.globalredir.akadns.net
www.apple.com.edgekey.net.globalredir.akadns.net. 3599 IN CNAME e6858.dsce9.akamaiedge.net
e6858.dsce9.akamaiedge.net. 19 IN A 172.226.108.101
Received 182 bytes from 8.8.8.8#53 in 152 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:428
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY:0, ADDITIONAL: 0
;;QUESTION SECTION
;e6858.dsce9.akamaiedge.net. IN AAAA
;;ANSWER SECTION:
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
Received 100 bytes from 8.8.8.8#53 in 70 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:34978
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY:1, ADDITIONAL: 0
;;QUESTION SECTION:
;e6858.dsce9.akamaiedge.net. IN MX
;;AUTHORITY SECITON:
dsce9.akamaiedge.net. 179 IN SOA n0dsce9.akamaiedge.net. hostmaster.akamai.com. 1490629947 1000 1000 1000 1800
Received 109 bytes from 8.8.8.8#53 in 32 ms
dpkg -l | grep libc6
ii libc6:amd64 2.23-0ubuntu7 amd64 GNU C Library: Shared Libraries
ii libc6-dev:amd64 2.23-0ubuntu7 amd64 GNU C Library: Development Libraries and Header Files
networking dns glibc
I recently upgraded my ubuntu and suddenly lost DNS. By the looks of it, its related to https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532. But I cannot run the update to fix the issue because it can't use DNS to conduct the update. Is there any documentation out there on how to get the DNS working again so i can run the update and fix the issue? I have tried changing the DNS server and everything and nothing is working.
cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
dpkg -l dns | grep ii
ii avahi-dns confd 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi DNS configuration tool
ii dnsmasq-base 2.75-1ubuntu0.16.04.1 amd64 Small caching DNS proxy and DHCP/TFTP Server
ii dnsutils 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Clients Provided with BIND
ii libavahi-compact-libdnssd1:amd64 0.6.32~rc+dfsg-1ubuntu2 amd64 Avahi Apple Bonjour compatibility library
ii libdns-export162 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 Exported DNS Shared Library
ii libdns162:amd64 1:9.10.3.dfsg.p4-8ubuntu1.5 amd64 DNS Shared Library used by BIND
ii libnss-mdns:amd64 0.10-7 amd64 NSS Module for Multicast DNS name resolution
host -v www.apple.com
Trying "www.apple.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1102
;; flags: qr rd ra; QUERY: 1; ANSWER: 4; AUTHORITY: 0, ADDITIONAL: 0
;;QUESTION SECTION:
;www.apple.com. IN A
;;ANSWER SECTION:
www.apple.com. 1126 IN CNAME www.apple.com.edgekey.net.
www.apple.com.edgekey.net. 21568 IN CNAME www.apple.com.edgekey.net.globalredir.akadns.net
www.apple.com.edgekey.net.globalredir.akadns.net. 3599 IN CNAME e6858.dsce9.akamaiedge.net
e6858.dsce9.akamaiedge.net. 19 IN A 172.226.108.101
Received 182 bytes from 8.8.8.8#53 in 152 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:428
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY:0, ADDITIONAL: 0
;;QUESTION SECTION
;e6858.dsce9.akamaiedge.net. IN AAAA
;;ANSWER SECTION:
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
e6858.dsce9.akamaiedge.net. 19 IN AAAA 2001:559:19:988d::1aca
Received 100 bytes from 8.8.8.8#53 in 70 ms
Trying "e6858.dsce9.akamaiedge.net"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:34978
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY:1, ADDITIONAL: 0
;;QUESTION SECTION:
;e6858.dsce9.akamaiedge.net. IN MX
;;AUTHORITY SECITON:
dsce9.akamaiedge.net. 179 IN SOA n0dsce9.akamaiedge.net. hostmaster.akamai.com. 1490629947 1000 1000 1000 1800
Received 109 bytes from 8.8.8.8#53 in 32 ms
dpkg -l | grep libc6
ii libc6:amd64 2.23-0ubuntu7 amd64 GNU C Library: Shared Libraries
ii libc6-dev:amd64 2.23-0ubuntu7 amd64 GNU C Library: Development Libraries and Header Files
networking dns glibc
networking dns glibc
edited Mar 27 '17 at 16:51
fkraiem
8,92431830
8,92431830
asked Mar 27 '17 at 3:27
dj1635dj1635
1113
1113
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 5 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Edit your question to include theterminal
output ofcat /etc/resolv.conf
andcat /etc/NetworkManager/NetworkManager.conf
anddpkg -l *dns* | grep ii
andhost -v www.apple.com
.
– heynnema
Mar 27 '17 at 15:23
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output fromterminal
. Please don't use the comments to try and paste that info into. Thanks.
– heynnema
Mar 27 '17 at 15:30
Please paste also the output ofdpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.
– fkraiem
Mar 27 '17 at 16:30
Right, you have the latest version oflibc6
, so you are not affected by this bug. Iflibc6
was upgraded from the affected version, however, a reboot may be necessary.
– fkraiem
Mar 27 '17 at 16:50
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21
|
show 3 more comments
Edit your question to include theterminal
output ofcat /etc/resolv.conf
andcat /etc/NetworkManager/NetworkManager.conf
anddpkg -l *dns* | grep ii
andhost -v www.apple.com
.
– heynnema
Mar 27 '17 at 15:23
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output fromterminal
. Please don't use the comments to try and paste that info into. Thanks.
– heynnema
Mar 27 '17 at 15:30
Please paste also the output ofdpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.
– fkraiem
Mar 27 '17 at 16:30
Right, you have the latest version oflibc6
, so you are not affected by this bug. Iflibc6
was upgraded from the affected version, however, a reboot may be necessary.
– fkraiem
Mar 27 '17 at 16:50
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21
Edit your question to include the
terminal
output of cat /etc/resolv.conf
and cat /etc/NetworkManager/NetworkManager.conf
and dpkg -l *dns* | grep ii
and host -v www.apple.com
.– heynnema
Mar 27 '17 at 15:23
Edit your question to include the
terminal
output of cat /etc/resolv.conf
and cat /etc/NetworkManager/NetworkManager.conf
and dpkg -l *dns* | grep ii
and host -v www.apple.com
.– heynnema
Mar 27 '17 at 15:23
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output from
terminal
. Please don't use the comments to try and paste that info into. Thanks.– heynnema
Mar 27 '17 at 15:30
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output from
terminal
. Please don't use the comments to try and paste that info into. Thanks.– heynnema
Mar 27 '17 at 15:30
Please paste also the output of
dpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.– fkraiem
Mar 27 '17 at 16:30
Please paste also the output of
dpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.– fkraiem
Mar 27 '17 at 16:30
Right, you have the latest version of
libc6
, so you are not affected by this bug. If libc6
was upgraded from the affected version, however, a reboot may be necessary.– fkraiem
Mar 27 '17 at 16:50
Right, you have the latest version of
libc6
, so you are not affected by this bug. If libc6
was upgraded from the affected version, however, a reboot may be necessary.– fkraiem
Mar 27 '17 at 16:50
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21
|
show 3 more comments
2 Answers
2
active
oldest
votes
The file that stores information about what DNS servers to consult when resolving domain names is /etc/resolv.conf
. But the problem with this file is that it is strongly advised not to edit that file by hand because if you do, it's soon going to be automatically overwritten by the resolvconf
program. What you can do, however, is add the following lines to the /etc/resolvconf/resolv.conf.d/head
file:
# Google's public DNS servers
nameserver 8.8.8.8 # Primary DNS server
nameserver 8.8.4.4 # Secondary DNS server
This file is used when constructing /etc/resolv.conf
. Specifically, its contents are added to the beginning of the /etc/resolv.conf
file.
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
add a comment |
When the update will solve the problem it should not be too difficult to achieve that without DNS.
Maybe a workaround is to find out out the IP address of your update server and enter that into your /etc/apt/sources.list instead of the fully qualified domain name.
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2faskubuntu.com%2fquestions%2f897270%2fdns-cannot-resolve-hosts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The file that stores information about what DNS servers to consult when resolving domain names is /etc/resolv.conf
. But the problem with this file is that it is strongly advised not to edit that file by hand because if you do, it's soon going to be automatically overwritten by the resolvconf
program. What you can do, however, is add the following lines to the /etc/resolvconf/resolv.conf.d/head
file:
# Google's public DNS servers
nameserver 8.8.8.8 # Primary DNS server
nameserver 8.8.4.4 # Secondary DNS server
This file is used when constructing /etc/resolv.conf
. Specifically, its contents are added to the beginning of the /etc/resolv.conf
file.
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
add a comment |
The file that stores information about what DNS servers to consult when resolving domain names is /etc/resolv.conf
. But the problem with this file is that it is strongly advised not to edit that file by hand because if you do, it's soon going to be automatically overwritten by the resolvconf
program. What you can do, however, is add the following lines to the /etc/resolvconf/resolv.conf.d/head
file:
# Google's public DNS servers
nameserver 8.8.8.8 # Primary DNS server
nameserver 8.8.4.4 # Secondary DNS server
This file is used when constructing /etc/resolv.conf
. Specifically, its contents are added to the beginning of the /etc/resolv.conf
file.
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
add a comment |
The file that stores information about what DNS servers to consult when resolving domain names is /etc/resolv.conf
. But the problem with this file is that it is strongly advised not to edit that file by hand because if you do, it's soon going to be automatically overwritten by the resolvconf
program. What you can do, however, is add the following lines to the /etc/resolvconf/resolv.conf.d/head
file:
# Google's public DNS servers
nameserver 8.8.8.8 # Primary DNS server
nameserver 8.8.4.4 # Secondary DNS server
This file is used when constructing /etc/resolv.conf
. Specifically, its contents are added to the beginning of the /etc/resolv.conf
file.
The file that stores information about what DNS servers to consult when resolving domain names is /etc/resolv.conf
. But the problem with this file is that it is strongly advised not to edit that file by hand because if you do, it's soon going to be automatically overwritten by the resolvconf
program. What you can do, however, is add the following lines to the /etc/resolvconf/resolv.conf.d/head
file:
# Google's public DNS servers
nameserver 8.8.8.8 # Primary DNS server
nameserver 8.8.4.4 # Secondary DNS server
This file is used when constructing /etc/resolv.conf
. Specifically, its contents are added to the beginning of the /etc/resolv.conf
file.
edited Mar 27 '17 at 7:19
answered Mar 27 '17 at 7:01
mishamisha
416718
416718
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
add a comment |
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
I did what you instructed and if i ping a website or look at the host -v command, I get results with not packet loss. However, when I try to use a browser or try to do a apt-get update, the DNS fails. I think its related to the issue in the link above. Is there a way to get the IP of the Ubuntu update servers so I can run the update to fix the DNS bug?
– dj1635
Mar 27 '17 at 13:14
add a comment |
When the update will solve the problem it should not be too difficult to achieve that without DNS.
Maybe a workaround is to find out out the IP address of your update server and enter that into your /etc/apt/sources.list instead of the fully qualified domain name.
add a comment |
When the update will solve the problem it should not be too difficult to achieve that without DNS.
Maybe a workaround is to find out out the IP address of your update server and enter that into your /etc/apt/sources.list instead of the fully qualified domain name.
add a comment |
When the update will solve the problem it should not be too difficult to achieve that without DNS.
Maybe a workaround is to find out out the IP address of your update server and enter that into your /etc/apt/sources.list instead of the fully qualified domain name.
When the update will solve the problem it should not be too difficult to achieve that without DNS.
Maybe a workaround is to find out out the IP address of your update server and enter that into your /etc/apt/sources.list instead of the fully qualified domain name.
answered Mar 27 '17 at 16:37
CatManCatMan
552520
552520
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f897270%2fdns-cannot-resolve-hosts%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
Edit your question to include the
terminal
output ofcat /etc/resolv.conf
andcat /etc/NetworkManager/NetworkManager.conf
anddpkg -l *dns* | grep ii
andhost -v www.apple.com
.– heynnema
Mar 27 '17 at 15:23
Please edit your answers into your original question by clicking "edit" under your question, and pasting in the output from
terminal
. Please don't use the comments to try and paste that info into. Thanks.– heynnema
Mar 27 '17 at 15:30
Please paste also the output of
dpkg -l | grep libc6
so we can see whether you are affected by the bug you mention.– fkraiem
Mar 27 '17 at 16:30
Right, you have the latest version of
libc6
, so you are not affected by this bug. Iflibc6
was upgraded from the affected version, however, a reboot may be necessary.– fkraiem
Mar 27 '17 at 16:50
That is good to hear! At least that helps narrow down why I have no DNS still.
– dj1635
Mar 27 '17 at 18:21