Estimated Reading Time: 1 minutes|Last Updated: 11/19/2021, 7:57:43 AM

# Create Dns

# usage

Usage: oredge dns create [OPTIONS]

OPTIONS:
    --nameserver json                  nameserver, can add multiple times.
        domain string                  domain.
        ttl integer                    ttl.
        unit string                    min, hour, day.
    --map-to-k8s bool                  true or false.
    --k8s integer                      k8s id.
    --zone string                      zone.
    --soa-email string                 soa email.
    --gid integer                      user group id, can add multiple times.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

# example

  1. create dns.
# oredge dns create --nameserver '{"domain":"ns1.test.com","ttl":1,"unit":"hour"}' --zone test.com
ID: 1