<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rescached/environment.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>2026-03-25T22:59:26Z</updated>
<entry>
<title>all: refactoring DoT and DoH to use listen address instead port</title>
<updated>2026-03-25T22:59:26Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-03-25T22:57:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=06e602df04fe8f8c96505993b7f5c48527f83d63'/>
<id>urn:sha1:06e602df04fe8f8c96505993b7f5c48527f83d63</id>
<content type='text'>
Using port makes the IP address of DoT and DoH listen on the same
address with UDP.
If we set ListenAddress to 0.0.0.0 and TLS termination is handled
by proxy, this cause DoT and DoH will also listen on all
addresses.

This behaviour makes the server open DoT and DoH ports to the public,
where it should be on local address only.
</content>
</entry>
<entry>
<title>all: add option to set minimum TTL</title>
<updated>2026-02-02T20:59:04Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-02-02T20:58:01Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=d30b17c4db1392c19b11c3af7a47051f8dd6568a'/>
<id>urn:sha1:d30b17c4db1392c19b11c3af7a47051f8dd6568a</id>
<content type='text'>
In the rescached.cfg, we add option where user can force the minimum
TTL in the DNS answer.
This option is not a standard and not recommended used in public
facing network.
It should be used only for personal and private network.
</content>
</entry>
<entry>
<title>all: replace debug package with internal Debug variabel</title>
<updated>2025-01-26T08:44:04Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-26T08:44:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=3826603fb49edda796c2a5541b39b5bb00d3745c'/>
<id>urn:sha1:3826603fb49edda796c2a5541b39b5bb00d3745c</id>
<content type='text'>
The [debug.Value] will be removed in the next release of pakakeh.go.
</content>
</entry>
<entry>
<title>all: comply with linters</title>
<updated>2024-03-26T17:15:33Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2024-03-26T16:58:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/rescached/commit/?id=88085dfc4f3b38489968038ce33533d87ed55876'/>
<id>urn:sha1:88085dfc4f3b38489968038ce33533d87ed55876</id>
<content type='text'>
Fix the code as recommended by linters, for example using context for
HTTP client request, using 0600 for file permission, using string
concatenation instead of fmt, using "%w" for error, and reorder defer.
</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>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>
</feed>
