<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rescached/cmd/resolver/resolver.go, branch main</title>
<subtitle>DNS resolver cache daemon, DNS server with caches support.</subtitle>
<id>http://git.kilabit.info/rescached/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/rescached/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/'/>
<updated>2024-03-21T10:39:02Z</updated>
<entry>
<title>all: move repository to SourceHut</title>
<updated>2024-03-21T10:39:02Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-21T10:39:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=570b2f04afb2d78d3ddf4fe850988ce98bccac2f'/>
<id>urn:sha1:570b2f04afb2d78d3ddf4fe850988ce98bccac2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: replace module "share" with "pakakeh.go"</title>
<updated>2024-03-21T09:52:51Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-21T09:51:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=842206eacafa273b63beee4ab8a7de3b000dfa73'/>
<id>urn:sha1:842206eacafa273b63beee4ab8a7de3b000dfa73</id>
<content type='text'>
The module "share" has been moved to new repository at SourceHut and
we rename it to make it more unique instead of common English words
"share".
</content>
</entry>
<entry>
<title>all: apply recommendation from linter revive</title>
<updated>2024-02-04T08:06:46Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-02-04T08:06:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=1b8a3151bbb15322bd22bbff841803c6bc9cd7d0'/>
<id>urn:sha1:1b8a3151bbb15322bd22bbff841803c6bc9cd7d0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cmd/resolver: replace "math/rand" with "crypto/rand"</title>
<updated>2023-09-23T06:55:28Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-09-23T06:52:58Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=97bdd0d7b8411135c67d78441e73b8e2d6aff170'/>
<id>urn:sha1:97bdd0d7b8411135c67d78441e73b8e2d6aff170</id>
<content type='text'>
The random number from "math/rand" is predictable if the seed is known.
Even though the random number here is only for generating unique request
ID, we still need to prevent this by using more secure random number.
</content>
</entry>
<entry>
<title>go.mod: update all dependencies and set Go mod version to 1.20</title>
<updated>2023-09-23T06:55:28Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-09-23T06:48:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=1b10f5c1d9b0d91e9675963b8307180cbf222b4e'/>
<id>urn:sha1:1b10f5c1d9b0d91e9675963b8307180cbf222b4e</id>
<content type='text'>
The update on share module affect the following changes,

* lib/dns: removing dns.ZoneRecords, replacing it with
  map[string][]*dns.ResourceRecord

* lib/dns: file Name in Zone renamed to Origin

* lib/dns: replace call to Caches.InternalPopulate with
  InternalPopulateZone that accept zone as parameter
</content>
</entry>
<entry>
<title>all: change the HTTP API to update hosts in block.d</title>
<updated>2022-06-09T16:39:01Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-22T19:27:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=03ae9f6bfde5262b44d2318cc1162c20d867a3f6'/>
<id>urn:sha1:03ae9f6bfde5262b44d2318cc1162c20d867a3f6</id>
<content type='text'>
We have HTTP API to enable or disable block.d by batch by passing all
block.d records.
The name of HTTP API is /v2/block.d/update and this is duplicate with
API to update the content of hosts in block.d.

This changes fix this by creating new HTTP API /v2/block.d/fetch
that fetch the latest hosts file from specific block.d by its name.

While at it,

- reformat html and JavaScript files using js-beautify
- rename constants and methods for HTTP APIs
- add and update comments for some HTTP APIs
</content>
</entry>
<entry>
<title>all: use the exported Blockd type instead of interface{}</title>
<updated>2022-05-22T14:56:02Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-22T14:56:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=fdb3c4462417dd1caeb28d263c1f3be6e453f6bb'/>
<id>urn:sha1:fdb3c4462417dd1caeb28d263c1f3be6e453f6bb</id>
<content type='text'>
Since we have exported the Blockd type from rescached package, any
Blockd operation on the HTTP server and on the client on cmd/resolver
can use it instead of using interface{}.
</content>
</entry>
<entry>
<title>cmd/resolver: implement command to list hosts in block.d</title>
<updated>2022-05-22T14:53:46Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-22T14:51:15Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=e62bf6a1a77f87487ad1fbeae5f30730d441cda4'/>
<id>urn:sha1:e62bf6a1a77f87487ad1fbeae5f30730d441cda4</id>
<content type='text'>
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
  }
}
</content>
</entry>
<entry>
<title>cmd/resolver: implement command to delete record on zone</title>
<updated>2022-05-17T16:51:00Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-17T16:39:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=bb08b5bb6ad6cf3e1c409db7d69ace4364e7bc8d'/>
<id>urn:sha1:bb08b5bb6ad6cf3e1c409db7d69ace4364e7bc8d</id>
<content type='text'>
Given the following command

  $ resolver zone.d rr delete &lt;zone&gt; &lt;"@" | subdomain&gt; &lt;type&gt; &lt;class&gt; &lt;value&gt;

It will delete the record in zone by given subdomain, type, class, and
value.
</content>
</entry>
<entry>
<title>cmd/resolver: implement command to get records on zone</title>
<updated>2022-05-16T06:22:52Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-16T06:22:52Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=58adf877165752bcba4a76f40b70c938af698f56'/>
<id>urn:sha1:58adf877165752bcba4a76f40b70c938af698f56</id>
<content type='text'>
Given the following command,

  $ resolver zone.d rr get &lt;zone&gt;

It will fetch and print all records in the specific &lt;zone&gt;.
</content>
</entry>
</feed>
