I am having trouble with name resolution in a server with debian and I cannot even install packages, such as dig or nslookup, to investigate the issue. I tried to use the IP addres in the source.list, as described here:
https://wiki.debian.org/SourcesList#Name_Resolution
but it failed. I did use the IP from `host` (in another machine):
Code: Select all
(at a computer with name resolution)$ host deb.debian.org
deb.debian.org is an alias for debian.map.fastlydns.net.
debian.map.fastlydns.net has address 151.101.178.132
debian.map.fastlydns.net has IPv6 address 2a04:4e42:2a::644
Code: Select all
$ cat /etc/apt/sources.list
deb http://151.101.178.132/debian contrib main
Code: Select all
$ apt update
Err:1 http://151.101.178.132/debian contrib InRelease
500 Domain Not Found [IP: 151.101.178.132 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://151.101.178.132/debian/dists/contrib/InRelease 500 Domain Not Found [IP: 151.101.178.132 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Any hints??