Commit 68018a9
committed
fix(resolvers): stop search-list iteration on NODATA responses
When search domains are configured (e.g., dnsmasq `domain=le`), doggo
appended search suffixes even when the original query got a valid NODATA
response (NOERROR with no answers). This caused spurious `. SOA ...
NXDOMAIN` results in the output.
The search-list loop now also breaks when the DNS response Rcode is
NOERROR (success), even if there are no answer records. NOERROR means
the name exists but has no records of the requested type — that's a
definitive answer, not a reason to try search suffixes.
Fixes #2341 parent 84808d4 commit 68018a9
4 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
0 commit comments