<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rescached/httpd.go, branch dev-telemetry</title>
<subtitle>DNS resolver cache daemon, DNS server with caches support.</subtitle>
<id>http://git.kilabit.info/rescached/atom?h=dev-telemetry</id>
<link rel='self' href='http://git.kilabit.info/rescached/atom?h=dev-telemetry'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/'/>
<updated>2023-04-01T09:15:08Z</updated>
<entry>
<title>all: update go doc comments</title>
<updated>2023-04-01T09:15:08Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-04-01T09:11:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=3e188c30249222b58504ca87da66564b31f63d11'/>
<id>urn:sha1:3e188c30249222b58504ca87da66564b31f63d11</id>
<content type='text'>
While at it, use "_" for unused parameter on methods.
</content>
</entry>
<entry>
<title>all: un-export HostsFiles and Zones fields on Environment</title>
<updated>2022-06-12T07:29:31Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-12T07:29:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=95622f8904b8448f97e46a55b2da2273f511a8b8'/>
<id>urn:sha1:95622f8904b8448f97e46a55b2da2273f511a8b8</id>
<content type='text'>
Previously those fields exported because web client need it to initialize
the content for /hosts.d and /zone.d pages.

Since we now have HTTP API for that, web client can call get request
to the respective API without depends on the environment.
</content>
</entry>
<entry>
<title>all: trim the zone's name from request on HTTP API zone.d record delete</title>
<updated>2022-06-12T06:02:22Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-12T05:28:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=dbbf768254182ad12be3ecedf61685f8e18201a3'/>
<id>urn:sha1:dbbf768254182ad12be3ecedf61685f8e18201a3</id>
<content type='text'>
When calling API for zone.d record delete, client send the fully
qualified domain name on record to be deleted, but caches store only
the subdomains internally.
This cause the delete action fail, because no internal record match
with request.
</content>
</entry>
<entry>
<title>all: make GET /api/hosts.d to return list of hosts.d if name is empty</title>
<updated>2022-06-12T06:02:21Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-10T18:48:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=b76e182e94f55ce542ba336ea35bcb108e924c3f'/>
<id>urn:sha1:b76e182e94f55ce542ba336ea35bcb108e924c3f</id>
<content type='text'>
This is to provide an HTTP API to fetch list of hosts.d files on the
server.
</content>
</entry>
<entry>
<title>all: fixes HTTP API for updating environment</title>
<updated>2022-06-12T06:02:21Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-10T15:20:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=8c8619d939e57c42dcb28c3f680ec9a3c6d075fa'/>
<id>urn:sha1:8c8619d939e57c42dcb28c3f680ec9a3c6d075fa</id>
<content type='text'>
There are two issues when updating environment.
One is on the front, where debug value is send as string.
Another one is the back, where new environment overwrite all of options
where it should only update only DNS server options and Debug fields.
</content>
</entry>
<entry>
<title>_www/block.d: fix the variable names on hosts block.d</title>
<updated>2022-06-12T06:02:16Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-06-10T13:08:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=d84e92947fa9d935c374430567b6a3d88a371b5e'/>
<id>urn:sha1:d84e92947fa9d935c374430567b6a3d88a371b5e</id>
<content type='text'>
In the commit 0b92dbb8463d, we changes the field HostsBlocks in
Environment to HostBlockd, but we forgot to changes the code in
the web.

This changes fix this issue.
</content>
</entry>
<entry>
<title>go.mod: update to share module v0.38.0</title>
<updated>2022-06-09T16:50:27Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-28T17:50:05Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=b4e49485f815db682def487191c129f8904d85eb'/>
<id>urn:sha1:b4e49485f815db682def487191c129f8904d85eb</id>
<content type='text'>
This changes affect the dns Server where all caches related methods has
been moved to field Caches.
</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: implement HTTP API to fetch list of block.d</title>
<updated>2022-05-22T14:51:48Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-22T14:47:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=3a38245a6a418b2ddbe4dfcd916ab83708b6f500'/>
<id>urn:sha1:3a38245a6a418b2ddbe4dfcd916ab83708b6f500</id>
<content type='text'>
Given the following request,

  GET /api/block.d

It will return list of hosts in block.d as JSON format:

	{
		"data": {
			"&lt;name&gt;": &lt;Blockd&gt;
			...
		}
	}
</content>
</entry>
<entry>
<title>all: export and rename the hostsBlock type to Blockd</title>
<updated>2022-05-22T14:51:47Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-05-22T14:29:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=0b92dbb8463dee31c005c59f67c2bf754a9eae12'/>
<id>urn:sha1:0b92dbb8463dee31c005c59f67c2bf754a9eae12</id>
<content type='text'>
In the Environment, we have a field HostsBlocks that reference
an unexported type hostsFile.
In order for any package to be able to use this field, we need to
export this type.

While at it, we rename the type from hostsBlock to Blockd to make it
simple and consistent with name.
</content>
</entry>
</feed>
