DEV Community

kyorohiro (kiyohiro kawamura)
kyorohiro (kiyohiro kawamura)

Posted on

1

How to create DNS Client at Pure Dart

In this series, I'll show you how to create a DNS client from scratch in Dart language.

(1) Dart's Network Byte Order (ASIS OK)
(2) Generate DNS Query (ASIS OK)
(3) PARSE RESPONSE MESSAGE (TODO)
(4) ...

As a side effect.
Maybe you will be able to read and implement the RFC.

DNS RFC

https://datatracker.ietf.org/doc/html/rfc1034
https://datatracker.ietf.org/doc/html/rfc1035
https://datatracker.ietf.org/doc/html/rfc3901
https://datatracker.ietf.org/doc/html/rfc8484

COMPLETE CODE

https://github.com/kyorohiro/dart2.dns

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay