Dynamic DNS Quickstart
- Audience
- Setup an API key
- Create a Zone
- Create a hostname
- Create a Group
- Create a DDNS Key
- Issue an update
Audience
This guide is for new users that need to set up a hostname and manage its address via an update device such as a camera, router, or software updater. In this guide you will create API and DDNS keys, bootstrap a new zone and hostname, then update that name’s address via HTTP Update Protocol. You will use both the No-IP DNS API and the HTTP Update Protocol.
Setup an API key
First, sign into your No-IP account and navigate to the API Key management page. Here you will create your first API Key.
When creating an API Key, you must give it a label. This is for your own reference to identify the particular key. You may also give it an optional expiration date. The key will be invalid after this date.
Note: The API Key will only be shown once. If you lose it, you will have to generate a new one. No-IP does not store the original key.
For the purposes of demonstration, we will assume you are using a Bash-like shell with cURL and jq available.
Create a Zone
First, we will create a new zone if you do not already have one. We’ll use sub.example.com
in this guide. Replace it with your own domain.
List the zones on our account to see the new zone we’ve created:
Create a Hostname
Create a record for myhost.sub.example.com
.
View the RRSet you just created. An RRSet is the values that are served for a DNS record name and type.
Create a Group
Next, create a group. The group will be attached to a DDNS Key and used to
update the value of one or more A or AAAA records. You may call your group whatever
you may like. In this example we will use the name mygroup
.
View the group:
Create Credentials to Update the Group (DDNS Key)
Set up a DDNS Key. This is a unique credential used to update the values of a group of records. We will pass in the name of the group we created earlier.
Issue an Update
The credentials created in the last step can be used with any device that integrates with No-IP. Download one of No-IP’s update clients or use the credentials in a hardware device such as a camera or router. Use the hostname “all.ddnskey.com”. Read more about setting up an updater in our knowledgebase.
For integrating the HTTP Update Protocol into your system please see our integration information.
Testing with Curl
The credentials may also be used directly with the HTTP Update Protocol.
We received a “good” response meaning that our group was updated. If the same response is sent again without a change to the IP address we should see a “nochg” result.