Create a TXT Record
TXT records contain human-readable information that refers to a system in a data center, a network, or the contact details of an administrator. A TXT record is limited to a string of 255 characters. You can add multiple strings to a TXT record, with or without double quotes surrounding the strings.
A TXT record consists of the following data:
-
Name: The root domain or the hostname for which you want to add the information.
-
TTL: The time duration, in seconds, for which a record can be retained in the recursive resolver’s cache.
-
Target: Single or multiple strings in a human-readable format.
When creating TXT records, consider the following limitations:
-
Multiple TXT records are allowed per
Name
. -
Coexistence with NS records is not permitted.
In this tutorial, you will create a TXT record that provides the system administrator’s email address admin@mail1.host.com
TYPE | NAME | TARGET | TTL | PROXY |
---|---|---|---|---|
TXT |
@ |
1200 |
- |
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 details:
-
TYPE: TXT
-
NAME: @
-
TARGET: admin@mail1.host.com
-
TTL: 1200
-
PROXY: disable
-
-
Click Create.
The TXT 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 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 TXT record.
root@edjx:~ # edjx domain records create @ TXT admin@mail1.host.com 1200 Record created successfully. Record ID: 816995db-8f1e-49ba-9c6b-db98c3d759ab
-
List the domain records.
root@edjx:~ # edjx domain records list ID Name Type Target TTL Proxy Created By Created On 816995db-8f1e-49ba-9c6b-db98c3d759ab @ TXT admin@mail1.host.com 1200 false edjdocs 2022-03-10 07:55:27.954 -0700 MST
See edjx domain records create for additional details.