Skip to content

Instantly share code, notes, and snippets.

@flid0
Last active Apr 6, 2022
Embed
What would you like to do?
dynv6.com auto update IPv4 tool python
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}")
@Razuuu
Copy link

Razuuu commented Dec 22, 2021

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