Script to submit both IPv6 and IPv4 addresses to DuckDNS.
By default, DuckDNS cannot automatically resolve IPv6 addresses (See DuckDNS FAQ for more details.) Using my script will allow you to easily and automatically submit your IPv4 and IPv6 addresses to DuckDNS.
While your public IPv4 address is shared across all devices in your network using NAT, each device will have its own public IPv6 address. Therefor, you must run this script on the device that is actually providing the service. (NAT will be automatically disregarded if a public IPv4 address is detected on the machine.)
- curl, sed, grep, head
- working ipv6 address
- working internet connection w/ dns resolution
- Run ./autoconfig-duckdns6.sh
- Type your site subdomain. Do not enter ".duckdns.org."
- Paste your DuckDNS token. Watch for trailing whitespace.
- If behind NAT, you'll be asked to enter an IPv4 service. If you are unsure, just press Enter.
- The curl request should return OK when Connecting to Duck DNS.
- "K0" is an official error code from DuckDNS - check your subdomain and token
- If you get any other output, something is broken. See prerequisites.
- The script will automatically save your configuration in ~/ and create a cron job.
- Check your crontab to make sure the job has been created.