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

# Modify Dns

# usage

Usage: oredge dns modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --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. modify dns.
# oredge dns modify 1 --nameserver '{"domain":"ns1.test.com","ttl":1,"unit":"hour"}' --zone test.com
OK