Create an NS Record
NS records allow you to delegate part of your domain to use different name servers. It lists the name servers that can answer lookups on the edjDNS zone and helps with balancing traffic to your website.
An NS record consists of the following data:
-
Name: The root domain or the subdomain for the nameserver.
-
Target: The nameserver delegated for the DNS management of the domain or subdomain.
-
TTL: The time duration, in seconds, for which a record can be retained in the recursive resolver’s cache.
An A record already exists for the nameserver that is delegated for DNS management. |
In this tutorial, you will create two NS records for the subdomain blog
and delegate its DNS management to the nameservers: ns1.host.com
and ns2.host.com
.
TYPE | NAME | TARGET | TTL | PROXY |
---|---|---|---|---|
NS |
blog |
ns1.host.com |
300 |
- |
NS |
blog |
ns2.host.com |
300 |
- |
Use EdjConsole
-
Log into EdjConsole.
-
Switch to the organization associated with the domain you want to add the record.
-
Navigate to Main Menu > Domains.
The Domain page displays. -
Click on a domain.
The Domain Attributes page displays. -
Click Create Record.
-
Enter the following to create an NS record:
-
TYPE: NS
-
NAME: blog
-
TARGET: ns1.host.com
-
TTL: 300
-
-
Click Create.
-
Repeat steps 5 -7 to create another NS record:
-
TYPE: NS
-
NAME: blog
-
TARGET: ns2.host.com
-
TTL: 300
The NS records are added to the list of resource records for the domain.
-
Use EdjCLI
-
Log into EdjCLI.
edjx login Username: <string> ✔ Password: **********█ Logged in successfully root@edjx:~ #
-
Switch to the organization associated with the domain you want to add the record.
edjx config organization -i
-
Select the domain to add the record.
edjx config domain -i
-
Create the NS record for the
blog
subdomain and delegate DNS management to thens1.host.com
nameserver.root@edjx:~# edjx domain records create blog NS ns1.host.com 300 Record created successfully. Record ID: 173e1f25-be8a-49c7-b6b5-9f22db1c85e2
-
Create another NS record for the
blog
subdomain and delegate DNS management to thens2.host.com
nameserver.root@edjx:~# edjx domain records create blog NS ns2.host.com 300 Record created successfully. Record ID: 117de2bb-002a-4a0b-b088-6df3d9a8e4e7
-
List the domain records.
ID Name Type Target TTL Proxy Created By Created On 173e1f25-be8a-49c7-b6b5-9f22db1c85e2 blog NS ns1.host.com 300 false Sample User 2022-05-03 16:16:52.363 +0530 IST 117de2bb-002a-4a0b-b088-6df3d9a8e4e7 blog NS ns2.host.com 300 false Sample User 2022-05-03 16:16:30.137 +0530 IST
See edjx domain records create for additional details.