A simple wrapper over platform native DNS methods. https://codeberg.org/moxxy/moxdns
Go to file
Alexander "PapaTutuWawa a1f01486fe chore(release): publish packages
- moxdns@0.1.4+1
 - moxdns_android@0.1.4+1
 - moxdns_linux@0.1.4+1
 - moxdns_platform_interface@0.1.4+1
2022-11-08 17:42:52 +01:00
example chore(release): publish packages 2022-11-08 17:42:52 +01:00
packages chore(release): publish packages 2022-11-08 17:42:52 +01:00
.gitignore refactor: Migrate to using melos 2022-07-28 19:51:33 +02:00
analysis_options.yaml refactor: Migrate to using melos 2022-07-28 19:51:33 +02:00
flake.lock Turn to federated plugin 2022-04-29 13:58:33 +02:00
flake.nix Turn to federated plugin 2022-04-29 13:58:33 +02:00
melos.yaml refactor: Migrate to using melos 2022-07-28 19:51:33 +02:00
README.md refactor: Migrate to using melos 2022-07-28 19:51:33 +02:00

moxdns

A very small wrapper around platform-"native" methods to perform DNS SRV lookups.

Usage

import "package:moxdns/moxdns.dart";

Future<void> 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.

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.