Skip to content

Commit 1c02b73

Browse files
committed
docs(rules): read a public DNS record over DoH
Plain lookups from inside the network cannot see it. The gateway filters DNS by content category, which it enforces by redirecting every port 53 packet to its own resolver, so an external resolver appears to answer with the split-horizon address and switching resolvers looks like confirmation.
1 parent 4e0bd19 commit 1c02b73

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.chezmoitemplates/rules/common-standards.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ On macOS, use `mdfind` for file searches. Spotlight indexing makes broad paths l
7474

7575
On macOS, use `container` instead of `docker`. On Linux, use `docker`.
7676

77+
### DNS Lookups
78+
79+
Read how a name resolves from outside a network over DoH, not with `dig` against an external resolver: `curl -s -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=<name>&type=A'`. A gateway that filters DNS redirects every port 53 packet to its own resolver, so `dig @8.8.8.8` returns the internal answer while appearing to come from Google, and trying a different resolver changes nothing. Send a query to an unroutable address such as `192.0.2.1` to tell the two apart: an answer means the redirect is in place, a timeout means the queries leave.
80+
7781
### URL Fetch Retry
7882

7983
When a URL fetch is denied (403, access denied, bot block), retry with `tvly extract <URL> --format markdown --json`. Tavily fetches server-side, so the block on this host does not apply.

0 commit comments

Comments
 (0)