DNS problem total newbee to Linux

davidtj

Member
Mar 17, 2020
22
0
21
61
Please be patient as I have minimal linux experience.
I have set up Proxmox on a Nuc - all seems to be ok but I am getting timed out and unresolved hosts when trying to do an update. The update occasionally works on restart but often fails.
I am pretty sure its a DNS error.
nano /etc/resolv.conf responds with the following lines:
search local
nameserver 8.8.8.8
nameserver 8.8.4.4

Any really basic help much appreciated.
Thanks
 
hi,

can you ping 8.8.8.8?
can you ping google.com?

what is the output of dig google.com

but I am getting timed out and unresolved hosts when trying to do an update
can you also post the full output of the apt update command?

cat /etc/network/interfaces might also be useful in case it's a networking issue
 
I can ping 8.8.8.8 but NOT google.com

Output from dig.google:
root@nuc:~# dig google.com
dig google.com

; <<>> DiG 9.11.5-P4-5.1-Debian <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
root@nuc:~# dig google.com

OUtput from update
root@nuc:~# apt update
Err:1 http://ftp.uk.debian.org/debian buster InRelease
Temporary failure resolving 'ftp.uk.debian.org'
Err:2 http://download.proxmox.com/debian/pve buster InRelease
Temporary failure resolving 'download.proxmox.com'
Err:3 http://security.debian.org buster/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:4 http://ftp.uk.debian.org/debian buster-updates InRelease
Temporary failure resolving 'ftp.uk.debian.org'
Reading package lists... Done
Building dependency tree
Reading state information... Done
86 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'ftp.uk.debian.org'
W: Failed to fetch http://ftp.uk.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'ftp.uk.debian.org'
W: Failed to fetch http://security.debian.org/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/buster/InRelease Temporary failure resolving 'download.proxmox.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@nuc:~# dig google.com

Output from
root@nuc:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.86
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
root@nuc:~#

Appreciate help
 
Hi,

Try to create dynamic host configuration with command dhclient after that ping google and post your output of command: cat /etc/resolv.conf and output of cat /etc/apt/sources.list as well
 
Thanks for advice. Crazily it was a network cablee which communicated internally but not externally. Swapped over and now fixed thanks for help.