A DNS resolver written in TypeScript for educational purposes.
npm install
npx tsx src/index.ts <record-type> <domain>
# e.g.
npx tsx src/index.ts A www.k-nut.eu
npm run test # starts unit tests in watch mode
npm run test:ci # runs unit tests once and reports coverage
npm run test:integration # runs integrations tests comparing to `dig`
This Primer was very helpful in understanding the DNS package structure.