# Create Dns

# usage

Usage: oredge dns create [OPTIONS]

OPTIONS:
    --nameserver json                  nameserver, can add mutilple 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 mutilple 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