Skip to content

CLI DNS

github-actions[bot] edited this page Sep 26, 2026 · 4 revisions

CLI: DNS

create-hosted-zone

Kind: Write.

Flag Type Required
--domain-name string yes
VPCIDs (via --cli-input-json only) []string yes
--description string
--no-wait bool
vngcloud dns create-hosted-zone --domain-name <domain-name> --cli-input-json '{"VPCIDs":["<vpc-id>"]}'

create-record

Kind: Write.

Flag Type Required
--hosted-zone-id string yes
--type string yes
Values (via --cli-input-json only) []dns.RecordValue yes
--sub-domain string
--ttl int
--routing-policy string
--sticky-session *bool
--no-wait bool
vngcloud dns create-record --hosted-zone-id <hosted-zone-id> --type <type> --cli-input-json '{"Values":[{"Value":"<value>"}]}'

delete-hosted-zone

Kind: Write, destructive.

Flag Type Required
--hosted-zone-id string yes
--no-wait bool
vngcloud dns delete-hosted-zone --hosted-zone-id <hosted-zone-id> --yes

delete-record

Kind: Write, destructive.

Flag Type Required
--hosted-zone-id string yes
--record-id string yes
--no-wait bool
vngcloud dns delete-record --hosted-zone-id <hosted-zone-id> --record-id <record-id> --yes

get-hosted-zone

Kind: Read.

Flag Type Required
--hosted-zone-id string yes
vngcloud dns get-hosted-zone --hosted-zone-id <hosted-zone-id> --query HostedZone

get-record

Kind: Read.

Flag Type Required
--hosted-zone-id string yes
--record-id string yes
vngcloud dns get-record --hosted-zone-id <hosted-zone-id> --record-id <record-id> --query Record

list-hosted-zones

Kind: Read.

Flag Type Required
--name string
--page int
--size int
vngcloud dns list-hosted-zones

list-records

Kind: Read.

Flag Type Required
--hosted-zone-id string yes
--name string
vngcloud dns list-records --hosted-zone-id <hosted-zone-id>

update-hosted-zone

Kind: Write.

Flag Type Required
--hosted-zone-id string yes
VPCIDs (via --cli-input-json only) *[]string
--description *string
--no-wait bool
vngcloud dns update-hosted-zone --hosted-zone-id <hosted-zone-id> --description <description>

update-record

Kind: Write.

Flag Type Required
--hosted-zone-id string yes
--record-id string yes
--sub-domain *string
--type *string
--ttl *int
--routing-policy *string
Values (via --cli-input-json only) *[]dns.RecordValue
--sticky-session *bool
--no-wait bool
vngcloud dns update-record --hosted-zone-id <hosted-zone-id> --record-id <record-id> --ttl <ttl>

Clone this wiki locally