Skip to content

Instantly share code, notes, and snippets.

@pennae
Created May 5, 2021 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pennae/92d0aba5b8064302bf964ae81ebb0a9c to your computer and use it in GitHub Desktop.
Save pennae/92d0aba5b8064302bf964ae81ebb0a9c to your computer and use it in GitHub Desktop.
{ lib, ... }:
with lib;
{
services.unbound.settings.server = {
# settings ...
} // zipAttrsWith (_:flatten) [
# in place of imports
{
local-zone: ''"local." static'';
local-zone-tag: ''"local." "local_net"'';
local-data = [
"router.local. IN A 10.0.0.1"
"server.local. IN A 10.0.0.10"
];
local-data-ptr = [
"10.0.0.1 router.local."
"10.0.0.10 server.local."
];
}
# ...
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment