Skip to main content

How to Create, Edit, and Delete DNS Records

Validated on 03 July 2023 - Last edited on 03 July 2023

Adding a domain you own to your FibaCloud account lets you manage the domains DNS records with the control panel and API.

Each type of DNS record has its own values and settings, and the sections below explain what each of these records are used for and what goes into the fields they contain.

All DNS records have one value in common: TTL, or time to live, which determines how long the record can remain cached before it expires. Loading data from a local cache is fast, but visitors wont see DNS changes until their local cache expires and updates with a new DNS lookup. As a result, higher TTL values give visitors faster performance and lower TTL values ensure that DNS changes are picked up quickly. All DNS records require a minimum TTL value of 30 seconds.

Create, Update, or Delete Records Using the API

How to add a record using the FibaCloud API

To add a record using the FibaCloud API, follow these steps:

  1. Submit a GET request for get Product ID and Domain IDs.
curl --request GET \
--url https://cloud.fibacloud.com/api/dns \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Take note of the Service ID and Domain ID information from the response.
  2. Submit POST request with parameters.
curl --request POST \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id}/records \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{
"name": "example.com",
"ttl": 14400,
"priority": null,
"type": "A",
"content": "10.0.30.15"
}'
{
"success": true,
"record": {
"name": "example.com",
"type": "A",
"ttl": "3600",
"priority": "",
"content": "10.0.30.15"
},
"info": [
[
"dnsnewrecordadded",
"A"
]
]
}
List DNS Records with FibaCloud API

Follow these steps to list all DNS records for a domain:

  1. Submit a GET request for get Product ID and Domain IDs.
curl --request GET \
--url https://cloud.fibacloud.com/api/dns \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Take note of the Service ID and Domain ID information from the response.
  2. Submit GET request with parameters.
curl --request GET \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id} \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
{
"service_id": "100",
"name": "example.com",
"records": [
{
"id": "21",
"type": "A",
"ttl": "14400",
"name": "example.com.",
"priority": 0,
"content": "10.0.30.15"
},
{
"id": "16",
"type": "MX",
"ttl": "14400",
"name": "example.com.",
"priority": "0",
"content": "mail.example.com"
},
{
"id": "13",
"type": "CNAME",
"ttl": "14400",
"name": "ftp.example.com.",
"priority": 0,
"content": "example.com"
},
{
"id": "12",
"type": "CNAME",
"ttl": "14400",
"name": "www.example.com.",
"priority": 0,
"content": "example.com"
},
{
"id": "11",
"type": "CNAME",
"ttl": "14400",
"name": "mail.example.com.",
"priority": 0,
"content": "example.com"
},
{
"id": "4",
"type": "SOA",
"ttl": "86400",
"name": "fibadns.com.",
"priority": 0,
"content": [
"tr.fibadns.com",
"root.eu-central.fibadns.com",
"2023101615",
"3600",
"1800",
"1209600",
"86400"
]
}
]
}
How to update a record using the FibaCloud API

To update a record using the FibaCloud API, follow these steps:

  1. Submit a GET request for get Product ID and Domain IDs.
curl --request GET \
--url https://cloud.fibacloud.com/api/dns \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Take note of the Service ID and Domain ID information from the response.
  2. Send a GET request to get the Record ID.
curl --request GET \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id} \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Update records with PUT request.
curl --request PUT \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id}/records/{record_id} \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{
"name": "example.com",
"ttl": 3600,
"priority": 0,
"type": "A",
"content": "10.0.30.15"
}'
{
"record": {
"id": "21",
"type": "A",
"ttl": "3600",
"name": "example.com",
"priority": 0,
"content": "10.0.30.15"
},
"info": [
"The record was updated successfully."
]
}
How to delete a record using the FibaCloud API

To delete a record using the FibaCloud API, follow these steps:

  1. Submit a GET request for get Product ID and Domain IDs.
curl --request GET \
--url https://cloud.fibacloud.com/api/dns \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Take note of the Service ID and Domain ID information from the response.
  2. Send a GET request to get the Record ID.
curl --request GET \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id} \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
  1. Send a DELETE request for delete record.
curl --request DELETE \
--url https://cloud.fibacloud.com/api/service/{service_id}/dns/{domain_id}/records/{record_id} \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json'
{
"success": true
}

Create, Update, and Delete Records Using the Control Panel

Open the management page of your DNS Service from your Control Panel.

New VM

This page lists all your domain names registered with your DNS service. Access the DNS management page by clicking on the domain name for which you want to add, edit or delete records.

DNS Overview

To create a record, select the record type from the box in the title and click the Add button. The supported record types sections below have detailed instructions for each type of record.

To modify or delete a record, open the records Actions menu.

DNS Actions

Click Edit to change the values for that record. To permanently delete the record, click Delete, then click Yes in the confirmation window.

These records will not take effect until you have updated your name servers with your domain registrar and those changes have propagated, which can take up to 48 hours.

Supported Record Types

A Records

An A record maps an IPv4 address to a domain name. This determines where to direct any requests for a domain name.

On FibaCloud, A records have the following fields.

  • NAME, which can be set to:

    • The apex domain (@). Leave blank to map an apex domain name, such as example.com, to an IPv4 address.
    • A subdomain prefix (e.g. www). To create a subdomain, enter a subdomain prefix. For example, to create www.example.com, you would enter www.
  • Content

    • In A records, the IPV4 address can be entered in the Content field.
Note

It is possible to add multiple records for the same DNS entry, each pointing to a different IP address.

AAAA Records

An AAAA record, also called a Quad A record, maps an IPv6 address to a domain name. This determines where to direct requests for a domain name in the same way that an A record does for IPv4 addresses.

On FibaCloud, AAAA records have the following fields.

  • NAME, which can be set to:

    • The apex domain (@). Leave blank to map an apex domain name, such as example.com, to an IPv6 address.
    • A subdomain prefix (e.g. www). To create a subdomain, enter a subdomain prefix. For example, to create www.example.com, you would enter www.
  • Content

    • In AAAA records, the IPV6 address can be entered in the Content field.

CNAME Records

A CNAME record defines an alias for an A record; it points one domain to another domain instead of to an IP address. When the associated A records IP address changes, the CNAME will follow to the new address.

On FibaCloud, CNAME records have the following fields.

  • NAME, which should be set to the subdomain prefix for the new alias you want to create.

  • Content which should be set to the hostname where the alias should point. For the alias to work, the hostname must have an A record or be handled by a wildcard A record. This can be:

    • The apex domain (@). Leave blank to map an apex domain name, such as example.com.
    • A subdomain (e.g. site.example.com).

MX Records

An MX record specifies the mail servers responsible for accepting email on behalf of your domain. Providers often make multiple name servers available so that if one is offline, another can respond. Each server needs its own MX record.

On FibaCloud, MX records have the following fields.

  • NAME, Determines which host should accept email. In most cases, the hostname field must be set to blank before it can be applied to the apex domain.
  • Content which points to the hostname with the A record for the mail server.
  • PRIORITY, which indicates the order in which the mail servers should contacted. This field takes a positive whole number where 0 is the highest priority.

TXT Records

A TXT record is used to associate a string of text with a hostname. These are primarily used to verify that you own a domain.

On FibaCloud, TXT records have the following fields.

  • NAME, which can be set to:
    • The apex domain (@). Leave blank to map an apex domain name, such as example.com, to an IPv4 address.
    • A subdomain prefix (e.g. www). To create a subdomain, enter the subdomain prefix. For example, to create www.example.com, you would enter www.
  • Content (e.g. example_name=example_value), which is a name-value pair separated by an equal sign, =.

DKIM Record

Domain Keys Identified Mail (DKIM) records contain public keys used to authenticate email arriving from a domain. When you use DKIM on your email server, your server signs emails with a private key that receiving email servers then validate using the public key contained in a DKIM DNS record. DKIM records increase your email sending reputation with inbox providers by providing a means to check that no one has intercepted or altered the email during transit.

DKIM records are special TXT records. You can create them using the TXT record option in the control panel.

NS Records

An NS record specifies the name servers, or servers that provide DNS services, for a domain or subdomain. You can use these to direct part of your traffic to another DNS service or to delegate DNS administration for a subdomain.

On FibaCloud, NS records have the following fields.

  • NAME, which can be set to:
    • The apex domain (@). Leave blank to map an apex domain name, such as example.com, to an IPv4 address.
    • A subdomain prefix (e.g. www). To create a subdomain, enter the subdomain prefix. For example, to create www.example.com, you would enter www.
  • Content which should be set to the name server. (e.g ns1.fibadns.com)
Note

When you add a domain to FibaCloud DNS, NS records pointing at FibaCloud name servers are automatically created for it.

PTR Records

A PTR (pointer) record, also known as an rDNS (reverse DNS) record, maps a domain name to an IP address.

We automatically create PTR records for Instances based on the name you give that Droplet in the control panel.