Cannot resolve `travel.state.gov` hostname in GitHub Actions with default DNS server

I have a scheduled job that accesses travel.state.gov. Connections to this domain are failing since five days ago. See a job failure where I was trying to debug this here:

Note how:

  • It works when using 1.1.1.1 as the nameserver
  • It works with other domains, including .gov ones

Sigh. This is such a random and obscure bug, I’m sure nobody will ever care to help solve it. I can’t even come up with a workaround since GitHub Actions doesn’t allow changing /etc/resolv.conf. It’ll just stay broken forever, won’t it.