Create an A Record

A Records allow edjDNS to send an HTTP request to the IPv4 address associated with the hostname.

An A record consists of the following data:

  • Name: The domain name of the primary domain owner.

  • TTL: The time duration, in seconds, for which a record can be retained in the recursive resolver’s cache.

  • Target: The IPv4 address of the origin web server.

When adding an A record to a Full or CNAME domain zone setup type, remember the following rules:

  • Multiple A records are allowed per name.

  • AAAA and A records can exist together.

In this tutorial, you will create an A record @ with target value 192.168.1.5.

TYPE NAME TARGET TTL PROXY

A

@

192.168.1.5

1800

enabled

Use the edjConsole

  1. Log into the Console.

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

    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 for the A record, @.

    • TYPE: A

    • NAME: @

    • TARGET: 192.168.1.5

    • TTL: 1800

    • PROXY: toggle right (enable)

      create a record 1

  7. Click Save.

    The A record is added to the list of resource records for the domain.

Use the edjCLI

  1. Switch to the organization you want to associate with the record.

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

    edjx config domain -i
  3. Create the A record, @.

    root@edjx:~ # edjx domain records create @ A 192.168.1.5 1800 --proxy
    Record created successfully.
    Record ID: 85b65a61-23ad-46fd-9f2e-61ea0988e7cc

See edjx domain records create for additional details.