#!/bin/sh
set -euC

# nfsn-dns-a DOMAIN NAME [IP]...

# nfsn-dns-a "example.com" "git" \
#     "$(curl -s "https://api.ipify.org")"
# nfsn-dns-a "example.com" "" \
#     "185.199.108.153" \
#     "185.199.109.153" \
#     "185.199.110.153" \
#     "185.199.111.153"

# Arguments.

domain="$1" ; shift
name="$1" ; shift

# Update.

nfsn-dns-update "$domain" "$name" "A" '' "$@"