diff options
| author | Shulhan <ms@kilabit.info> | 2022-05-17 23:39:10 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-05-17 23:51:00 +0700 |
| commit | bb08b5bb6ad6cf3e1c409db7d69ace4364e7bc8d (patch) | |
| tree | 5fed4b58027ada9acafb5af0795e2acc1868325d /_doc | |
| parent | be96c68a070474364690f0655b26dc8823eea293 (diff) | |
| download | rescached-bb08b5bb6ad6cf3e1c409db7d69ace4364e7bc8d.tar.xz | |
cmd/resolver: implement command to delete record on zone
Given the following command
$ resolver zone.d rr delete <zone> <"@" | subdomain> <type> <class> <value>
It will delete the record in zone by given subdomain, type, class, and
value.
Diffstat (limited to '_doc')
| -rw-r--r-- | _doc/resolver.adoc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/_doc/resolver.adoc b/_doc/resolver.adoc index 362bc62..d2d96c5 100644 --- a/_doc/resolver.adoc +++ b/_doc/resolver.adoc @@ -245,6 +245,13 @@ we pass two parameters: See the example below for more information. -- +`zone.d rr delete <zone> <"@" | subdomain> <type> <class> <value>`:: ++ +-- +Delete record from zone by its subdomain, type, class, and value. +-- + + == EXIT STATUS Upon exit and success +resolver+ will return 0, or 1 otherwise. @@ -394,6 +401,10 @@ Get all records in the zone "my.zone", Add IPv4 address "127.0.0.1" for domain my.zone, $ resolver zone.d rr add my.zone @ 0 A IN 127.0.0.1 + +or + + $ resolver zone.d rr add my.zone "" 0 A IN 127.0.0.1 { "Value": "127.0.0.1", "Name": "my.zone", @@ -402,6 +413,11 @@ Add IPv4 address "127.0.0.1" for domain my.zone, "TTL": 604800 } +and to delete the above record, + + $ resolver zone.d rr delete my.zone @ A IN 127.0.0.1 + OK + Add subdomain "www" with IPv4 address "192.168.1.2" to zone "my.zone", $ resolver zone.d rr add my.zone www 0 A IN 192.168.1.2 @@ -413,6 +429,10 @@ Add subdomain "www" with IPv4 address "192.168.1.2" to zone "my.zone", "TTL": 604800 } +and to delete the above record, + + $ resolver zone.d rr delete my.zone www A IN 192.168.1.2 + OK == AUTHOR |
