https://github.com/dab246/super_dns
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.
https://github.com/dab246/super_dns
dns ipv4 ipv6 network
Last synced: 5 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/dab246/super_dns
- Owner: dab246
- License: mit
- Created: 2025-10-27T06:02:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-28T06:04:38.000Z (8 months ago)
- Last Synced: 2026-01-11T16:23:39.804Z (5 months ago)
- Topics: dns, ipv4, ipv6, network
- Language: Dart
- Homepage: https://pub.dev/packages/super_dns
- Size: 20.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Super DNS
[](https://pub.dev/packages/super_dns)
[](https://dart.dev)
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`](https://pub.dev/packages/super_ip) and [`super_raw`](https://pub.dev/packages/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`:
```yaml
dependencies:
super_dns: ^0.1.0
```
Then run:
```bash
dart pub get
```
---
## 🧠Example
```dart
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
- [`super_ip`](https://pub.dev/packages/super_ip): IP stack abstraction.
- [`super_raw`](https://pub.dev/packages/super_raw): binary data encoding utilities.
- [`universal_io`](https://pub.dev/packages/universal_io): cross-platform I/O APIs.
---
## 🛠Development
Run tests:
```bash
dart test
```
Run analysis:
```bash
dart analyze
```
---
## 📄 License
MIT © 2025 [dab246](https://github.com/dab246)