# DuckDNS

DuckDNS is a free and reliable DDNS provider that offers a straightforward solution for associating a dynamic IP address with a domain name. It's important to note that DuckDNS only supports domains in the format of \`\*.duckdns.org\`. In this guide, we will walk you through the process of configuring DDNS in `hostd` using DuckDNS, enabling you to maintain uninterrupted connectivity to your storage provider, even with a dynamic IP address.

## Things you'll need

* A running `hostd` node

## Create a DuckDNS domain

First, open a browser and go to <https://duckdns.org>. Sign in using one of their supported logins (Twitter, GitHub, Google, etc). You will be taken to the account management page, where you can create a free domain.

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-f00cc61b42da70a970550c024e0affc14df7b1d4%2Fhostd_ddns_duckdns_home.png?alt=media" alt=""><figcaption><p>DuckDNS homepage</p></figcaption></figure>

1. Think of a unique sub-domain. It should be unique and easy to remember
2. Enter the domain into the textbox
3. Click "add domain"

After adding the domain you will see it appear in the list below.

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-fc3c3336c0635c2014e2d6d46a8a2cf02120465f%2Fhostd_ddns_duckdns_domain.png?alt=media" alt=""><figcaption><p>new domain</p></figcaption></figure>

## Configure hostd

Copy the "token" from the DuckDNS account management page.

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-b83ed23e2110201c594fa7830801c43f048b854d%2Fhostd_ddns_duckdns_token.png?alt=media" alt=""><figcaption></figcaption></figure>

1. Access the hostd UI, `http://localhost:9980` by default
2. Log in using your password
3. Navigate to the "Configuration" page
4. Change the "Address" to your DuckDNS domain (e.g. `myhostdtest.duckdns.org:9982`)

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-ca1ede0ac8fef2a1ccbe83601b7cc83db5b89b10%2Fhostd_ddns_duckdns_config_address.png?alt=media" alt=""><figcaption></figcaption></figure>

1. Now, scroll down to the "DNS" section
2. Change "Dynamic DNS Provider" to "DuckDNS"
3. Turn on IPv4 and/or IPv6, depending on your setup
4. In the "Token" field, paste the token you copied from the DuckDNS webpage
5. Click "Save changes"

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-5a8e9c6b1fb0592f94401d4ab206a633fb21c22f%2Fhostd_ddns_duckdns_config.png?alt=media" alt=""><figcaption><p>hostd DuckDNS config</p></figcaption></figure>

If you changed the settings correctly, you should see "Dynamic DNS enabled" in the top status bar. You will also need to announce your new net address so renters will be able to connect.

<figure><img src="https://1359353245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV2BVjqEgmmTvw2IQruD8%2Fuploads%2Fgit-blob-d754f7bc9cb0cc55675bd144d07e1bf6e37c8a38%2Fhostd_ddns_duckdns_success.png?alt=media" alt=""><figcaption><p>DDNS is active</p></figcaption></figure>

`hostd` will now automatically update your DuckDNS domain when your IP address changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sia.tech/legacy/hosting/hostd/dynamic-dns/duckdns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
