Skip to content

Script to submit both IPv6 and IPv4 addresses to DuckDNS

License

Notifications You must be signed in to change notification settings

gtwy/IPv6forDuckDNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

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

  • curl, sed, grep, head
  • working ipv6 address
  • working internet connection w/ dns resolution

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.

About

Script to submit both IPv6 and IPv4 addresses to DuckDNS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages