<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rescached/environment.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-07-26T17:40:14Z</updated>
<entry>
<title>[wip] cmd/rescached: add telemetry using questdb</title>
<updated>2023-07-26T17:40:14Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-04-01T08:34:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=a91993b95c88cf489e2503b6c8c03cbd7e67e207'/>
<id>urn:sha1:a91993b95c88cf489e2503b6c8c03cbd7e67e207</id>
<content type='text'>
The telemetry collect the Go runtime/metrics and forward it to questdb
instance in localhost.
</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: 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>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>
<entry>
<title>all: fix panic if a nil HostsFiles and/or Zones is accessed</title>
<updated>2022-04-22T17:16:08Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-04-22T17:10:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=dfc8f91eebcb77add23f7460e5cddef9f5f9140a'/>
<id>urn:sha1:dfc8f91eebcb77add23f7460e5cddef9f5f9140a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: always call Environment init</title>
<updated>2022-04-19T16:57:51Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-04-19T16:57:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=7d7b0b0fc9eb078001a010dcdab3aa97938806c3'/>
<id>urn:sha1:7d7b0b0fc9eb078001a010dcdab3aa97938806c3</id>
<content type='text'>
This is to make sure that all required fields that are empty in the
configuration initialized to its default values.
</content>
</entry>
<entry>
<title>all: add option to set the base directory</title>
<updated>2022-04-19T16:30:09Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-04-19T16:18:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=ed83581fc716d5d41d769662fae0bc5e78309982'/>
<id>urn:sha1:ed83581fc716d5d41d769662fae0bc5e78309982</id>
<content type='text'>
Previously, running an instance of rescached assume that all
configurations and cache are located in /etc/rescached and
/var/cache/rescached.

It possible that we may want to use different base directory (or $PREFIX,
in the auto tools terms), for example "/opt/rescached" or as showed
in the "dev" task in the Makefile, we use "_test" as base directory
for running test instance.

This changes also fix an error when loading hosts file from non-existant
hosts.d directory.
</content>
</entry>
<entry>
<title>all: refactoring the hosts blocks format and location</title>
<updated>2022-04-19T15:18:26Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-04-19T15:18:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=4f5896b2cfd316cb388d39e3772439f48b215fda'/>
<id>urn:sha1:4f5896b2cfd316cb388d39e3772439f48b215fda</id>
<content type='text'>
This changes add new directory called "block.d" under rescached.
This directory contains hosts file fetched from URL defined in hosts
block configuration.
In this way, we did not mixed between user created hosts file and
external hosts file.

In the configuration file, we changes the hosts block format from
single line

  hosts_block = &lt;URL&gt;

into subsection with dynamic name,

  [block.d "&lt;name&gt;"]
  name = &lt;name&gt;
  url = &lt;URL&gt;
</content>
</entry>
<entry>
<title>all: apply suggestions from linter</title>
<updated>2022-04-16T11:32:36Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-04-15T18:36:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd'/>
<id>urn:sha1:8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd</id>
<content type='text'>
List of changes,

* Remove unused constants keyIsEnabled, keyIsSystem, and keyLastUpdated.
* Use the method String on instance of Duration instead of fmt.Sprintf.
* Replace any usage of io/ioutil package with its replacement.
* Check for error from calling Environment.init and Zone.Add.
* Prefix all returned error on hostsBlock.update method.
* Add "lint" task as part of default target, build.
</content>
</entry>
</feed>
