Commit 5f77ab8
fix(dns): resolve names under a numeric ending (#100)
The registry sells `.2600`. The resolver refused to resolve anything
under it:
alt.2600 28 forwarded -> NXDOMAIN from upstream
seo.rank 28 moshpit(backfill) -> answered
`moshpitCandidate` rejected every all-numeric ending outright, so a
registered name was never even looked up. Buying an ending that cannot
resolve is the worst possible failure: the registry takes the money and
the name is dead, with nothing in any log to say why.
The rule was protecting against address literals — `1.2.3.4` must never
be read as `3.4` in this namespace, or whoever registered `.4` could
intercept traffic meant for a machine. But the dotted-quad guard above it
already covers that, and the blanket version caught a much larger class
than it needed to.
Narrowed to what is actually address-shaped: a name whose *every* label is
numeric. `10.0.0.1` and `192.168` stay rejected; `alt.2600` resolves. The
registry still decides whether a name exists — this is only the shape
filter, and it should exclude what can never be a name rather than what
merely looks unusual.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 3677b99 commit 5f77ab8
2 files changed
Lines changed: 34 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
34 | 56 | | |
35 | 57 | | |
36 | 58 | | |
| |||
0 commit comments