Resolve tinc hosts with subdomains too
This commit is contained in:
parent
b1db7229cd
commit
f0807443fd
2 changed files with 18 additions and 5 deletions
|
@ -23,10 +23,13 @@ in
|
|||
hosts;
|
||||
|
||||
# Add all of them to host
|
||||
networking.extraHosts = lib.strings.concatStringsSep
|
||||
"\n"
|
||||
(lib.attrsets.mapAttrsToList
|
||||
(name: host: "${host.subnetAddr} ${name}.tinc")
|
||||
hosts);
|
||||
nki.services.edns = {
|
||||
enable = true;
|
||||
cloaking-rules =
|
||||
(lib.attrsets.mapAttrs'
|
||||
(name: host: { name = "${name}.tinc"; value = host.subnetAddr; })
|
||||
hosts)
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue