Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/papatutuwawa/moxdns
A simple wrapper over platform native DNS methods. Github mirror for https://codeberg.org/moxxy/moxdns
https://github.com/papatutuwawa/moxdns
Last synced: 3 days ago
JSON representation
A simple wrapper over platform native DNS methods. Github mirror for https://codeberg.org/moxxy/moxdns
- Host: GitHub
- URL: https://github.com/papatutuwawa/moxdns
- Owner: PapaTutuWawa
- Created: 2022-01-25T19:44:59.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T18:15:00.000Z (10 months ago)
- Last Synced: 2024-11-02T02:21:38.933Z (about 2 months ago)
- Language: Dart
- Homepage:
- Size: 194 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# moxdns
A very small wrapper around platform-"native" methods to perform
DNS SRV lookups.## Usage
```dart
import "package:moxdns/moxdns.dart";Future main() async {
final result = await MoxdnsPlugin.srvQuery("_xmpps-client._tcp.example.server", false);
}
```The first argument to `srvQuery` is the SRV record you want to query. The second one is
whether to use DNSSEC or not. Note that DNSSEC is currently not supported, so the option
essentially does nothing right now.The function will return a future that either resolves to a list of SRV records, an empty
list of no records were found or `null` if an error occured.## Contributing
The development of this package is based on [melos](https://pub.dev/packages/melos).
To make all packages link to each other locally, begin by running `melos bootstrap`. After editing
the code and making your changes, please run `melos run analyze` to make sure that no linter warnings
are left inside the code.## License
See `LICENSE`.