Update DNS A/AAAA records with your current external IP address using the netcup DNS API.
Go to file
2023-03-28 15:36:36 +02:00
.gitignore init 2023-03-28 15:36:36 +02:00
main.py init 2023-03-28 15:36:36 +02:00
README.md init 2023-03-28 15:36:36 +02:00
requirements.txt init 2023-03-28 15:36:36 +02:00

netcup DNS

Update DNS records with your current external IP address using the netcup DNS API.

TODOs

Alternative external IP detection:

def external_ip_upnp():
    """
    https://stackoverflow.com/a/41385033

    Didn't work for me. Even after double checking fritz.box settings:

    fritz.box > Heimnetz > Netzwerk > Statusinformationen über UPnP übertragen
    """
    import miniupnpc
    u = miniupnpc.UPnP()
    u.discoverdelay = 1000
    u.discover()
    u.selectigd()
    print('external ip address: {}'.format(u.externalipaddress()))