how to control the cache (refresh) with a datasource that has cache-enable

Carsten Strotmann carsten at strotmann.de
Fri Feb 15 14:01:18 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How can I control the in-memory cache for a datasource that has a cache
enabled?

I have a zone that is stored in a SQLite3 database.

data_sources/classes/IN[1]/type "sqlite3"       string
data_sources/classes/IN[1]/params       {"database_file":
"/var/bind10/zones.db"}       any
data_sources/classes/IN[1]/cache-enable true    boolean
data_sources/classes/IN[1]/cache-zones[0]       "example.org"   string

changes to the database will not be served, unless the BIND 10 auth
module is restarted.

Auth loadzone example.org

will generate the error message (only in the log, not reported in bindctl):

2013-02-15 14:58:34.583 ERROR [b10-auth.auth/3470]
AUTH_DATASRC_CLIENTS_BUILDER_COMMAND_ERROR command execution failure:
failed to load a zone example.org./IN: error occurred in reload:
Confused about missing both filename and data source

The zone is served correctly.

Not sure if the error is mine or in the system.

Best regards

- -- Carsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEeP64ACgkQiDbv+TR5q6J/rQCfbE0bww8oGM8HVcpm5ZvOMD5c
eCsAoJqa4dQ32oncrFM1nE9VDJML4ZBd
=A351
-----END PGP SIGNATURE-----


More information about the bind10-users mailing list