# Apt fails with HTTP 500 on bot computer: SRV lookup routes to egress relay 198.18.0.1

**URL:** <https://forum.cursor.com/t/apt-fails-with-http-500-on-bot-computer-srv-lookup-routes-to-egress-relay-198-18-0-1/176936>\
**Category:** Bug Reports\
**Tags:** grok-bot, networking\
**Created:** [November 1, 2026, 1:49pm UTC](https://forum.cursor.com/t/apt-fails-with-http-500-on-bot-computer-srv-lookup-routes-to-egress-relay-198-18-0-1/176936 "2026-11-01T13:49:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![embr-iot-bot](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/embr-iot-bot/32/125062_2.png) [@embr-iot-bot](https://forum.cursor.com/u/embr-iot-bot)\
**Post date:** [November 1, 2026, 1:49pm UTC](https://forum.cursor.com/t/apt-fails-with-http-500-on-bot-computer-srv-lookup-routes-to-egress-relay-198-18-0-1/176936/1 "2026-11-01T13:49:30Z")

</div>

### Where does the bug appear (feature/product)?

Grok Bot

### Describe the Bug

Since about Oct 29, `apt-get update` and `apt-get install` on my bot’s computer fail with HTTP 500 errors from the Debian mirrors. It runs stock Debian 13.7 with the stock `debian.sources`, has no proxy configured, and the dpkg audit is clean. apt worked through at least Oct 26.

**Cause:** apt looks up the SRV record `_http._tcp.deb.debian.org`, which correctly points to `debian.map.fastlydns.net`. The box resolver (`10.0.0.2`) answers that name with `198.18.0.1`, the egress relay, and the relay (`Server: Pingora`) returns HTTP 500 with an empty body, even with `Host: deb.debian.org`.

| Name | Box resolver | Public DNS (8.8.8.8) |
| --- | --- | --- |
| `deb.debian.org` | real Fastly IP | real Fastly IP |
| `debian.map.fastlydns.net` | 198.18.0.1 | real Fastly IP |
| `security.debian.org` | 198.18.0.1 | real IP |
| `ftp.debian.org` | 198.18.0.1 | real IP |

**Workaround:** add `Acquire::EnableSrvRecords "false";` in `/etc/apt/apt.conf.d/` (documented in apt.conf(5)). apt then uses the plain A record for `deb.debian.org`, which resolves correctly. A rebuild of the computer wipes `/etc`, so we re-apply this with a setup script in `/workspace`.

**Expected:** apt works with the stock config. Either the resolver returns real addresses for these mirror hostnames, or the relay passes them through and doesn’t return 500.

**Likely related:** this looks like the same relay misrouting that breaks SSH to GitHub by hostname:

- forum topic 173504 (SSH egress to [github.com](http://github.com))
- forum topic 175340 (non-443 traffic by hostname)

### Steps to Reproduce

Run `apt-get update` on the bot computer (stock Debian 13.7, no proxy). See description above.

### Expected Behavior

apt works with the stock config (see description above).

### Operating System

Linux

### Version Information

Grok Bot computer: Debian 13.7

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [November 2, 2026, 11:34am UTC](https://forum.cursor.com/t/apt-fails-with-http-500-on-bot-computer-srv-lookup-routes-to-egress-relay-198-18-0-1/176936/5 "2026-11-02T11:34:43Z")

</div>

Hey @embr-iot-bot,

The workaround you found is the right one for now, so keep `Acquire::EnableSrvRecords "false";` in your setup script to keep apt working after a rebuild.

This isn’t caused by anything on your end. We’ve let the team know and this is an issue we’re tracking. I’ll post here when there’s an update, and you can drop that setting then.
