Need to return a different ip than looked up

I hope this is the correct place. I've been having problems where debian sends me to debian.map.fastlydns.net and I get an ip. Depending on where one is located one would get a different one. The problem is the one I'm issued to get my updates from times out.

I used the link below to see that depending where one is, a different ip is returned.

I found one in the US that I could ping so I used my host file to force a substitution. That let me do an update but I have 10 more computers and I'd rather just put the substitution in pi-hole so there is only one place to deal with.

Is there a way to do it?

Thanks,
Szumi

$ cat /etc/apt/sources.list
[..]
deb     http://deb.debian.org/debian     bookworm main contrib non-free-firmware
deb-src http://deb.debian.org/debian     bookworm main contrib non-free-firmware
$ dig +short _http._tcp.deb.debian.org srv
10 1 80 debian.map.fastlydns.net.
$ dig +short debian.map.fastlydns.net.
151.101.38.132

Below is a better example for the XBian distro based on Debian and offering three APT mirrors via those SRV records:

$ dig +short _http._tcp.apt.xbian.org srv
10 1 80 xbian-apt.mirrorservice.org.
10 1 80 apt.xbian.org.
10 1 80 apt1.xbian.org.

You could try create a debian.map.fastlydns.net. DNS record via the Pi-hole webGUI and point it to that US based IP you found.
Of course if Debian or Fastlydns decides to change any, it breaks again.

Before you'd resort to manipulating DNS:
Did you try to simply switch package sources for your OS to a different mirror?

I did the pi-hole dns trick to get by. My ISP has managed to get someone at fastly that is taking an interest in it. I'll update the thread if it gets fixed correctly.

ISP found someone at Fastly that fixed my issue. Not sure what was changed on their end but things are working now w/o messing with dns.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.