test: refactor test-dns
- track callback invocations with common.mustCall() and common.mustNotCall()
- remove test in test/internet/test-dns.js that is duplicated in test/parallel/test-dns.js
- move tests that might perform a DNS query from test test/parallel/test-dns.js to test/internet/test-dns.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test dns