diff options
Diffstat (limited to '_doc/resolver.adoc')
| -rw-r--r-- | _doc/resolver.adoc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/_doc/resolver.adoc b/_doc/resolver.adoc index 98bb5e3..f0d40de 100644 --- a/_doc/resolver.adoc +++ b/_doc/resolver.adoc @@ -171,6 +171,16 @@ Get the content of hosts file inside the hosts.d directory by file name. -- +hosts.d rr add <name> <domain> <value>:: ++ +-- +Insert a new record and save it to the hosts file identified by +"name". +If the domain name already exists, the new record will be appended +instead of replaced. +-- + + == EXIT STATUS Upon exit and success +resolver+ will return 0, or 1 otherwise. @@ -259,6 +269,17 @@ Get the content of hosts file named "myhosts" inside the hosts.d directory, } ] +Add new record "127.0.0.1 my.hosts" to hosts file named "hosts", + + $ resolver hosts.d rr add hosts my.hosts 127.0.0.1 + { + "Value": "127.0.0.1", + "Name": "my.hosts", + "Type": 1, + "Class": 1, + "TTL": 604800 + } + == AUTHOR |
