GoWiki
Index
Sections
Search
Login
daniel
INWX DynDNS
# Overview One free user (subdomain) https://www.inwx.de/de/offer/dyndns schema: `https://<username>:<password>@dyndns.inwx.com/nic/update?myip=<ip4addr>` schema with ipv6: `https://<username>:<password>@dyndns.inwx.com/nic/update?myip=<ip4addr>&myipv6=<ip6addr>` create user and password with subdomain https://www.inwx.de/de/nameserver2/dyndns # Update command Plain: ``` https://dyndns.inwx.com/nic/update?myip=<ip4addr> ``` cURL: ``` curl -sf -u <username>:<password> "https://dyndns.inwx.com/nic/update?myip=<ip4addr>" ``` OpenBSD's [ftp](https://man.openbsd.org/ftp.1): ``` ftp -o /dev/null "https://<username>:<password>@dyndns.inwx.com/nic/update?myip=<ip4addr>" ``` # crontab as user nobody ## openbsd asdf ``` #!/bin/sh username="" password="" domain="dyndns.example.com" ipv4=$(dig +short @ident.me) dyn_ip=$(dig +short ${domain}) [ $ipv4 = $dyn_ip ] && exit 0 ftp -o /dev/null "https://${username}:${password}@dyndns.inwx.com/nic/update?myip=${ipv4}" && \ logger "IP adress of DNS A Record from ${domain} updated to ${ipv4}" ``` ## linux asdf