diff options
| author | Shulhan <ms@kilabit.info> | 2022-05-22 21:51:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-05-22 21:53:46 +0700 |
| commit | e62bf6a1a77f87487ad1fbeae5f30730d441cda4 (patch) | |
| tree | 80da12ca42df2325d3faa49e2531454fa12091f4 /_www/doc | |
| parent | 3a38245a6a418b2ddbe4dfcd916ab83708b6f500 (diff) | |
| download | rescached-e62bf6a1a77f87487ad1fbeae5f30730d441cda4.tar.xz | |
cmd/resolver: implement command to list hosts in block.d
Given the following command
$ resolver block.d
It will print all hosts in block.d in the JSON format, for example
{
"pgl.yoyo.org": {
"Name": "pgl.yoyo.org",
"URL": "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts\u0026showintro=0\u0026startdate[day]=\u0026startdate[month]=\u0026startdate[year]=\u0026mimetype=plaintext",
"LastUpdated": "2022-04-20 01:54:30 WIB",
"IsEnabled": false
},
"someonewhocares.org": {
"Name": "someonewhocares.org",
"URL": "http://someonewhocares.org/hosts/hosts",
"LastUpdated": "2022-04-20 00:53:22 WIB",
"IsEnabled": false
},
"winhelp2002.mvps.org": {
"Name": "winhelp2002.mvps.org",
"URL": "http://winhelp2002.mvps.org/hosts.txt",
"LastUpdated": "2022-04-20 01:35:38 WIB",
"IsEnabled": false
}
}
Diffstat (limited to '_www/doc')
| -rw-r--r-- | _www/doc/resolver.adoc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/_www/doc/resolver.adoc b/_www/doc/resolver.adoc index 0f1a12c..948d81a 100644 --- a/_www/doc/resolver.adoc +++ b/_www/doc/resolver.adoc @@ -117,19 +117,13 @@ The "class" parameter is optional, its either IN (default), CS, or HS. === MANAGING BLOCK.D -block.d disable <name>:: -+ --- -Disable specific hosts on block.d. --- +`block.d`:: List all block.d hosts file. -block.d enable <name>:: -+ --- -Enable specific hosts on block.d. --- +`block.d disable <name>`:: Disable specific hosts on block.d. + +`block.d enable <name>`:: Enable specific hosts on block.d. -block.d update <name>:: +`block.d update <name>`:: + -- Fetch the latest hosts file from remote block.d URL defined by |
