dns-record

Usage: oredge dns-record ACTION [OPTIONS]

ACTION:
    create
    list
    show
    modify
    delete
    help

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

Create a DNS record

Usage: oredge dns-record create [OPTIONS]

OPTIONS:
    --dns                              dns id.
    --disabled bool                    true or false.
    --gateway integer                  gateway.
    --ip string                        ip.
    --is-master bool                   true or false.
    --ttl integer                      ttl.
    --unit string                      ttl unit, sec,min,hour,day.
    --sub-domain string                sub domain.
    --type string                      A,AAAA

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

Example

# oredge dns-record create 1 --type A --sub-domain tt --ip 10.1.1.1
ID: 1-371

List DNS records

Usage: oredge dns-record create [dns] [OPTIONS]

OPTIONS:
    --dns                              dns id.
    --disabled bool                    true or false.
    --gateway integer                  gateway.
    --ip string                        ip.
    --is-master bool                   true or false.
    --ttl integer                      ttl.
    --unit string                      ttl unit, sec,min,hour,day.
    --sub-domain string                sub domain.
    --type string                      A,AAAA

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

Example

# oredge dns-record list 1
ID       TYPE    SUB DOMAIN               TTL    UNIT    IS MASTER    CREATE TIME            MODIFY TIME
1-371    A       tt                                      true         2021-07-15 22:50:11    2021-07-15 22:50:11
1-370    A       test                                    true         2021-07-14 06:54:07    2021-07-14 06:54:07
1-367    A       abc                      5      min     true         2021-05-25 04:53:50    2021-05-25 04:53:50
1-364    A       @                        5      min     true         2021-05-09 22:04:40    2021-05-09 22:04:40
1-353    SRV     _aa._bb.sdfadsf          5      min     true         2021-03-30 22:39:55    2021-05-07 03:07:03
1-352    SRV     _dsf._dafsdf.asdfsdf     5      min     true         2021-03-30 22:33:36    2021-03-30 22:33:36
1-351    SRV     _htp._tcp.abc            5      min     true         2021-03-30 22:31:54    2021-03-30 22:31:54

Get details of a DNS record

Usage: oredge dns-record show [id] [OPTIONS]

OPTIONS:
    --id integer                       id.

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

Example

# oredge dns-record show 1-371
ID         : 1-371
TYPE       : A
SUB DOMAIN : tt
TTL        :
UNIT       :
DISABLED   : true
IS MASTER  : true
CREATE TIME: 2021-07-15 22:50:11
MODIFY TIME: 2021-07-15 22:50:11

Modify DNS record

Usage: oredge dns-record modify [id] [OPTIONS]

OPTIONS:
    --id                               id
    --disabled bool                    true or false.
    --gateway integer                  gateway.
    --ip string                        ip.
    --is-master bool                   true or false.
    --ttl integer                      ttl.
    --unit string                      ttl unit, sec,min,hour,day.
    --sub-domain string                sub domain.
    --type string                      A,AAAA

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

Example

# oredge dns-record modify 1-371 --ip 10.2.2.2
OK

Delete DNS Record

Usage: oredge rule delete [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --dns integer                      dns id.

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

Example

# oredge dns-record delete 1-371
OK