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 the edjConsole

  1. Log into the Console.

  2. Switch to the organization associated with the domain you want to add the record.

    View Selector

  3. Navigate to Main Menu > Domains.
    The Domain page displays.

    domain full select

  4. Click on a domain.
    The Domain Attributes page displays.

  5. Click Create Record.

  6. Enter the following to create an NS record:

    • TYPE: NS

    • NAME: blog

    • TARGET: ns1.host.com

    • TTL: 300

      create ns record 3

  7. Click Create.

  8. Repeat steps 5 -7 to create another NS record:

    • TYPE: NS

    • NAME: blog

    • TARGET: ns2.host.com

    • TTL: 300

      create ns record 4

      The NS records are added to the list of resource records for the domain.

      create ns record 5

EdjCLI

  1. Switch to the organization associated with the domain you want to add the record.

    edjx config organization -i
  2. Select the domain to add the record.

    edjx config domain -i
  3. Create the NS record for the blog subdomain and delegate DNS management to the ns1.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
  4. Create another NS record for the blog subdomain and delegate DNS management to the ns2.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
  5. 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