mod_dnsupdate/README.markdown
author Kim Alvefur <zash@zash.se>
Sun, 26 Mar 2023 14:37:42 +0200
changeset 5280 67777cb7353d
parent 4766 ba312cd7907f
permissions -rw-r--r--
mod_http_oauth2: Pedantic optimization Checking the length of the string seems like 30% more expensive than comparing it with the empty string (by reference, probably).

Generate a DNS UPDATE order in format suitable for `nsupdate` based on
current port configuration.

Example output:

```
$ prosodyctl mod_dnsupdate -d example.com -t xmpp.example.com example.com
zone example.com
server ns1.example.com
ttl 3600
add _xmpp-client._tcp.example.com IN SRV 1 1 5222
add _xmpp-server._tcp.example.com IN SRV 1 1 5269
```