Skip to content

1ctl domains dns create

Create a DNS record for a SatuSky-managed domain.

1ctl domains dns create

add

Flag Type Required Default Description
--domain string Yes — Domain name or ID
--type string Yes — DNS record type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA)
--name string Yes — Record name, such as @, www, or app
--data string Yes — Record value
--ttl integer No 0 Record TTL in seconds (min 600)
--priority integer No 0 Record priority
--port integer No 0 SRV record port
--weight integer No 0 SRV record weight
--flags integer No 0 CAA record flags
--tag string No — CAA record tag
--help, -h boolean No — Show help
Terminal window
# Create an A record
1ctl domains dns create --domain example.com --type A --name @ --data 192.0.2.1 --ttl 3600
# Create a CNAME record
1ctl domains dns create --domain example.com --type CNAME --name www --data example.com
# Create an MX record
1ctl domains dns create --domain example.com --type MX --name @ --data mail.example.com --priority 10