dns: consistency; performance on malicious input
This PR addresses two issues in lib/dns.js
.
- Inconsistent behavior on some invalid servers, #20441 (closed)
- Quadratic regex, a potential performance issue, #20443 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines