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 EdjConsole
-
Log into EdjConsole.
-
Switch to the organization associated with the domain you want to add the record to.
-
Navigate to Main Menu > Domains.
The Domain page displays. -
Click on a domain.
The Domain Attributes page displays. -
Click Create Record.
-
Enter the following for the A record,
@
.-
TYPE: A
-
NAME: @
-
TARGET: 192.168.1.5
-
TTL: 1800
-
PROXY: toggle right (enable)
-
-
Click Save.
The A record is 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 you want to associate with the record.
edjx config organization -i
-
Switch to the domain to add the record to.
edjx config domain -i
-
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.