I want to know how to edit Unbound config file
- I installed Unbound.
/etc/nixos/configuration.nix
services = {
unbound = {
enable = true;
};
};
- I edited Unbound config file
/var/lib/unbound/unbound.conf
server:
directory: "/var/lib/unbound"
username: unbound
chroot: "/var/lib/unbound"
pidfile: ""
interface: 127.0.0.1
interface: ::1
access-control: 127.0.0.0/24 allow
auto-trust-anchor-file: /var/lib/unbound/root.key
include: "/etc/unbound/unbound.conf.d/*.conf"
server:
directory: "/var/lib/unbound"
username: unbound
chroot: "/var/lib/unbound"
pidfile: ""
interface: 127.0.0.1
interface: ::1
access-control: 127.0.0.0/24 allow
auto-trust-anchor-file: /var/lib/unbound/root.key
- I restarted Unbound
systemctl restart unbound
but, it doesnt work.
Could you tell me how to edit unbound config file ?