super_dns 0.1.1 copy "super_dns: ^0.1.1" to clipboard
super_dns: ^0.1.1 copied to clipboard

A modern Dart package for working with the DNS protocol, supporting query parsing, encoding, and response handling with IPv4/IPv6 support. Updated for Dart 3.8.1 and compatible with the Super IP/Raw stack.

Super DNS #

Pub Version Dart SDK

A modern Dart package for working with the DNS protocol, supporting query parsing, encoding, and response handling with IPv4 and IPv6 support.

Built on top of super_ip and super_raw for efficient binary-level DNS message handling.


πŸš€ Features #

βœ… Fully null-safe
βœ… Compatible with Dart 3.8+
βœ… DNS query and response parsing
βœ… Support for A, AAAA, MX, TXT, and SRV records
βœ… Works with IPv4 and IPv6


πŸ“¦ Installation #

Add to your pubspec.yaml:

dependencies:
  super_dns: ^0.1.0

Then run:

dart pub get

🧠 Example #

import 'package:super_dns/super_dns.dart';

void main() async {
  final query = DnsQuery.standard('example.com', type: DnsRecordType.a);
  final response = await DnsClient.google().lookup(query);

  print('Got ${response.answers.length} answers:');
  for (final answer in response.answers) {
    print(answer);
  }
}

🧩 Dependencies #


πŸ›  Development #

Run tests:

dart test

Run analysis:

dart analyze

πŸ“„ License #

MIT Β© 2025 dab246

0
likes
140
points
801
downloads

Publisher

unverified uploader

Weekly Downloads

A modern Dart package for working with the DNS protocol, supporting query parsing, encoding, and response handling with IPv4/IPv6 support. Updated for Dart 3.8.1 and compatible with the Super IP/Raw stack.

Repository (GitHub)
View/report issues

Topics

#dns #network #ipv4 #ipv6

Documentation

API reference

License

MIT (license)

Dependencies

args, meta, super_ip, super_raw, universal_io

More

Packages that depend on super_dns