dns: added a reverse dns option
This commit is contained in:
parent
d3e1e3e67f
commit
be0868b860
6 changed files with 23 additions and 3 deletions
|
@ -38,6 +38,9 @@ in {
|
||||||
"${name} A ${ip_pub}"
|
"${name} A ${ip_pub}"
|
||||||
];
|
];
|
||||||
cname = [];
|
cname = [];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,5 +58,8 @@ in {
|
||||||
#"stream CNAME ${name}"
|
#"stream CNAME ${name}"
|
||||||
"ulfm CNAME ${name}"
|
"ulfm CNAME ${name}"
|
||||||
];
|
];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,14 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# add this server to dns
|
# add this server to dns
|
||||||
skynet_dns.records.external = [
|
skynet_dns.records = {
|
||||||
|
external = [
|
||||||
"${name} A ${ip_pub}"
|
"${name} A ${ip_pub}"
|
||||||
];
|
];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# we use this to pass in teh relevent infomation to the
|
# we use this to pass in teh relevent infomation to the
|
||||||
services.skynet_ldap = {
|
services.skynet_ldap = {
|
||||||
|
|
|
@ -54,6 +54,9 @@ in {
|
||||||
# the games are each going to have a subdomain on this
|
# the games are each going to have a subdomain on this
|
||||||
"games CNAME ${name}"
|
"games CNAME ${name}"
|
||||||
];
|
];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# we use this to pass in teh relevent infomation to the
|
# we use this to pass in teh relevent infomation to the
|
||||||
|
|
|
@ -74,6 +74,9 @@ in {
|
||||||
cname = [
|
cname = [
|
||||||
#"misc CNAME vendetta"
|
#"misc CNAME vendetta"
|
||||||
];
|
];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
records = {
|
records = {
|
||||||
|
|
|
@ -53,6 +53,9 @@ in {
|
||||||
cname = [
|
cname = [
|
||||||
#"misc CNAME vendetta"
|
#"misc CNAME vendetta"
|
||||||
];
|
];
|
||||||
|
reverse = [
|
||||||
|
"${builtins.substring 9 3 ip_pub} IN PTR ${name}"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
records = {
|
records = {
|
||||||
|
|
Loading…
Reference in a new issue