dns: got reverse dns working
This commit is contained in:
parent
6585a3c88a
commit
9b1a936f03
10 changed files with 41 additions and 13 deletions
|
@ -47,7 +47,7 @@ in {
|
|||
#"misc CNAME vendetta"
|
||||
];
|
||||
reverse = [
|
||||
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||
"${builtins.substring 9 3 ip_pub} IN PTR ${hostname}."
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -76,6 +76,18 @@ in {
|
|||
else []
|
||||
) nodes
|
||||
);
|
||||
|
||||
reverse = builtins.concatLists (
|
||||
lib.attrsets.mapAttrsToList (key: value:
|
||||
if builtins.hasAttr "skynet_dns" value.config
|
||||
then (
|
||||
if value.config.skynet_dns.enable
|
||||
then value.config.skynet_dns.own.reverse
|
||||
else value.config.skynet_dns.records.reverse
|
||||
)
|
||||
else []
|
||||
) nodes
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue