Last active
February 4, 2024 22:02
-
-
Save flid0/91bd9a3e15b61a8fd5797c325b3451a0 to your computer and use it in GitHub Desktop.
dynv6.com auto update IPv4 tool python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request | |
import requests # pip install requests | |
import time | |
''' | |
MODIFY VARIABLES BELOW | |
''' | |
token = # your token | |
zone = # your zone | |
while True: | |
time.sleep(30) # adjust for how long the wait during update checks should be. time is in seconds. | |
ip = urllib.request.urlopen('https://ident.me').read().decode('utf8') #ident.me is a tool for identifiying your ipv4 address | |
request = urllib.request.urlopen(f"https://ipv4.dynv6.com/api/update?ipv4={ip}&token={token}&zone={zone}") |
..ident.me returns my ipv6 address and no ipv4...
It should return your ipv4 address due to the sub domain 'ipv4'.etc
I know the auto version is buggy and I'll fix it soon.
Manual version should work.
use v4.ident.me or v6.ident.me
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
..ident.me returns my ipv6 address and no ipv4...