aboutsummaryrefslogtreecommitdiff
path: root/_doc/resolver.adoc
diff options
context:
space:
mode:
Diffstat (limited to '_doc/resolver.adoc')
-rw-r--r--_doc/resolver.adoc20
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