gtwy / IPv6forDuckDNS

Script to submit both IPv6 and IPv4 addresses to DuckDNS
GNU General Public License v3.0
60 stars 15 forks source link

IPv6forDuckDNS

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.

Understanding IPv6

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.)

Prerequisites

Installation

  1. 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.
  2. 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.
  3. The script will automatically save your configuration in ~/ and create a cron job.
  4. Check your crontab to make sure the job has been created.