Error looking up Cloudflare edge IPs: the DNS query failed

Hi,

  • Running cloudflared version 2023.8.3 on Mac OS X 10.15.7
  • Trying a simple tunnel to local http server on port 8000
  • website / DNS look all good, Cloudflare shows site as ‘active’
  • Cloudflare ZeroTrust dashboard shows the tunnel as ‘INACTIVE’

When I run:

cloudflared --loglevel debug --transport-loglevel warn --config ~/.cloudflared/config.yml tunnel run

I got these error:

...
2023-08-03T09:24:42Z DBG edge discovery: looking up edge SRV record domain=_v2-origintunneld._tcp.argotunnel.com event=0
2023-08-03T09:25:37Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.50.39:53: read udp 172.31.7.124:58325->172.19.50.39:53: i/o timeout" event=0
2023-08-03T09:25:37Z ERR Please try the following things to diagnose this issue: event=0
2023-08-03T09:25:37Z ERR   1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
2023-08-03T09:25:37Z ERR      Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
2023-08-03T09:25:37Z ERR   2. ensure that your DNS resolver is not returning compressed SRV records. event=0
2023-08-03T09:25:37Z ERR      See GitHub issue https://github.com/golang/go/issues/27546 event=0
2023-08-03T09:25:37Z ERR      For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
2023-08-03T09:25:37Z ERR      https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
2023-08-03T09:25:37Z INF Starting metrics server on 127.0.0.1:62840/metrics
2023-08-03T09:25:37Z DBG edge discovery: looking up edge SRV record domain=_v2-origintunneld._tcp.argotunnel.com event=0

2023-08-03T09:26:32Z ERR edge discovery: error looking up Cloudflare edge IPs: the DNS query failed error="lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.50.39:53: read udp 172.31.7.124:49635->172.19.50.39:53: i/o timeout" event=0
2023-08-03T09:26:32Z ERR Please try the following things to diagnose this issue: event=0
2023-08-03T09:26:32Z ERR   1. ensure that argotunnel.com is returning "origintunneld" service records. event=0
2023-08-03T09:26:32Z ERR      Run your system's equivalent of: dig srv _origintunneld._tcp.argotunnel.com event=0
2023-08-03T09:26:32Z ERR   2. ensure that your DNS resolver is not returning compressed SRV records. event=0
2023-08-03T09:26:32Z ERR      See GitHub issue https://github.com/golang/go/issues/27546 event=0
2023-08-03T09:26:32Z ERR      For example, you could use Cloudflare's 1.1.1.1 as your resolver: event=0
2023-08-03T09:26:32Z ERR      https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/ event=0
2023-08-03T09:26:32Z INF Tunnel server stopped
2023-08-03T09:26:32Z ERR Initiating shutdown error="Could not lookup srv records on _v2-origintunneld._tcp.argotunnel.com: lookup _v2-origintunneld._tcp.argotunnel.com on 172.19.50.39:53: read udp 172.31.7.124:49635->172.19.50.39:53: i/o timeout"
2023-08-03T09:26:32Z INF Metrics server stopped

Slightly different from these two posts: https://community.cloudflare.com/t/error-looking-up-cloudflare-edge-ips/501906
and https://community.cloudflare.com/t/argo-tunnel-error-looking-up-cloudflare-edge-ips/299360, mine is about i/o Time out.

Blockquote

Blockquote