Dynamic DNS
In order for the node to be accessible to other participants in a peer-to-peer blockchain, it must have an identifiable and stable IP address. Most internet service providers assign dynamically changing IP addresses to residential customers, and these can change on a weekly basis or router reboots.
The frequent IP address changes disrupt incoming peer connections and slow down the node's visibility and synchronization times. Dynamic DNS solves the problem through linking the dynamic IP address to a permanent domain name, allowing others to find you even when the IP changes.
The πΎ LUKSO CLI will optionally set the current interchangeble IP address during the client installation.
DNS Recordsβ
A Domain Name System record can be thought of as the internet's directory and is used to associate a human-readable domain name with an IP address used by computers to communicate. DNS records are of particular importance for the following reasons:
- Allow devices to find each other over the internet without hardcoding IPs
- Enable services like HTTPS, email delivery, and node routing
- Abstract IPs behind stable webpage or service names
mynode.example.com
β 198.51.100.12
Dynamic DNSβ
A Dynamic DNS service allows for automatic domain name registration and update in case of an IP address change. Once the IP address changes, the node or the router can trigger the respective DDNS provider to update the DNS record accordingly. Other nodes can thereby continue to be in touch using the domain name without interruption. This is especially useful for:
- Devices that must maintain consistent connectivity
- Services that want to stay discoverable during updates
mynode.example.com
β 198.51.100.12
at Time A / 198.51.100.13
at Time B
DDNS Setupsβ
There are several ways to implement Dynamic DNS. Each varies in technical complexity, flexibility, and setup cost.
Approach | Difficulty | Description |
---|---|---|
Users can register and choose free domains from DNS providers. The services often come with plug-and-play installation and scripts, which are ideal for regular node setups. For little money, the domain ownership can even be extended without further maintenance. β Dynamic DNS, π« No-IP, π€ Duck-DNS | ||
Many consumer routers support built-in DDNS settings for providers or ISP services. Users can configure their DDNS via the router's user interface. It's free and easy to set up, but people are bound to the hardware and supported service partners. β Router Requirements, π§ AVM , π ASUS | ||
Technically experienced users can register a domain and update the DNS record through the Cloudflare API. While offering great control, this requires experience with scripting and API calls. | ||
Developers can register their own domain and run a local IP checking script that sends a DNS update call to the domain provider. While offering great control, it requires experience with daemon software and API calls. | ||
System administrators can create their own DDNS update server and use their domain registrarβs API. This offers self-sufficient control over the setup but requires extensive development and DNS knowledge. |
A guide to integrate DDNS into the blockchain clients can be found on the Dynamic DNS guide.
Advanced and Expert setups might come with monthly or yearly costs due to the required domain registration.