Browse code

WIP: Add implementation

Robert Cranston authored on 17/06/2023 18:12:27
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,17 @@
1
+#!/bin/sh
2
+set -euC
3
+
4
+# nfsn-dns-mx DOMAIN NAME [MX_DATA]...
5
+
6
+# nfsn-dns-mx "example.com" "" \
7
+#     "10 mxa.mailgun.org." \
8
+#     "10 mxb.mailgun.org."
9
+
10
+# Arguments.
11
+
12
+domain="$1" ; shift
13
+name="$1" ; shift
14
+
15
+# Update.
16
+
17
+nfsn-dns-update "$domain" "$name" "MX" '' "$@"