Keep your subdomains synchronized with your dynamic home or server IP addresses using our high-performance API.
Head over to your API Keys dashboard and create a new key. Keep this secret as it provides write access to your DNS.
Ensure you have successfully claimed the subdomain you wish to update via the Domains panel.
Use one of the examples below to automate your IP updates. Our API handles A (IPv4) and AAAA (IPv6) automatically.
Automatically update your IP every 5 minutes using a simple cron job.
*/5 * * * * curl -s "https://api.nxtdev.xyz/update?key=YOUR_API_KEY&domain=yourdomain.nxtdev.xyz&ip=$(curl -s https://ifconfig.me)" > /dev/nullProgrammatic update using the native fetch API.
const updateDNS = async () => {
const params = new URLSearchParams({
key: "nxt_...",
domain: "hello.nxtdev.xyz",
ip: "1.2.3.4" // Use an IP discovery service if needed
});
const res = await fetch(`https://api.nxtdev.xyz/update?${params}`);
const text = await res.text();
console.log(text);
};Update your DNS using the requests library.
import requests
def update_ddns():
url = "https://api.nxtdev.xyz/update"
params = {
"key": "YOUR_API_KEY",
"domain": "your.nxtdev.xyz",
"ip": requests.get("https://api.ipify.org").text
}
r = requests.get(url, params=params)
print(r.text)
update_ddns()Direct URL format for routers supporting custom DDNS providers.
https://api.nxtdev.xyz/update?key=[API_KEY]&domain=[DOMAIN]&ip=[IP]The endpoint is highly optimized for performance and rate-limited at 60 updates per hour per account.
api.nxtdev.xyz/updateGET, POST