This project is a rip-off of libdns written in Rust. It defines an abstract API for managing DNS zones and implements it for several widely-used providers.
Note
This project is my very first (serious) attempt at learning Rust. I am more than thankful for any suggestions and tips on this matter, so please feel welcomed to bring them up in an issue :)
To add libdns
to your project, an entry like the following would be enough to include only the abstract DNS zone management traits:
[dependencies]
libdns = { version = "0" }
If you need one or more concrete provider implementations as well, you can simply add their corresponding feature flags to the dependency's features
field:
Provider | Feature Flag |
---|---|
Hetzner | hetzner |
The provider implementations use reqwest
for communicating with their APIs whenever possible.
By default, the default-tls
feature is enabled for reqwest.
These features can be given instead for choosing a different TLS backend (remember to disable the default features):
default-tls
(default)rustls-tls
native-tls
native-tls-vendor
Please refer to reqwest
s docs for an overview on what TLS backend does what.
I am grateful for any contribution to this project, so feel free to request, add or fix provider implementations when neccessary.