diff --git a/machines/agentjones.nix b/machines/agentjones.nix index 33cdae5..843789a 100644 --- a/machines/agentjones.nix +++ b/machines/agentjones.nix @@ -38,6 +38,9 @@ in { "${name} A ${ip_pub}" ]; cname = []; + reverse = [ + "${builtins.substring 9 3 ip_pub} IN PTR ${name}" + ]; }; diff --git a/machines/galatea.nix b/machines/galatea.nix index 68fa269..dc34e3e 100644 --- a/machines/galatea.nix +++ b/machines/galatea.nix @@ -58,5 +58,8 @@ in { #"stream CNAME ${name}" "ulfm CNAME ${name}" ]; + reverse = [ + "${builtins.substring 9 3 ip_pub} IN PTR ${name}" + ]; }; } diff --git a/machines/kitt.nix b/machines/kitt.nix index 0ae1018..1bd0e3b 100644 --- a/machines/kitt.nix +++ b/machines/kitt.nix @@ -36,9 +36,14 @@ in { }; # add this server to dns - skynet_dns.records.external = [ - "${name} A ${ip_pub}" - ]; + skynet_dns.records = { + external = [ + "${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 services.skynet_ldap = { diff --git a/machines/optimus.nix b/machines/optimus.nix index e5f19aa..21c875c 100644 --- a/machines/optimus.nix +++ b/machines/optimus.nix @@ -54,6 +54,9 @@ in { # the games are each going to have a subdomain on this "games CNAME ${name}" ]; + reverse = [ + "${builtins.substring 9 3 ip_pub} IN PTR ${name}" + ]; }; # we use this to pass in teh relevent infomation to the diff --git a/machines/vendetta.nix b/machines/vendetta.nix index cb47619..f4d854d 100644 --- a/machines/vendetta.nix +++ b/machines/vendetta.nix @@ -74,6 +74,9 @@ in { cname = [ #"misc CNAME vendetta" ]; + reverse = [ + "${builtins.substring 9 3 ip_pub} IN PTR ${name}" + ]; }; records = { diff --git a/machines/vigil.nix b/machines/vigil.nix index 667527b..f23d92c 100644 --- a/machines/vigil.nix +++ b/machines/vigil.nix @@ -53,6 +53,9 @@ in { cname = [ #"misc CNAME vendetta" ]; + reverse = [ + "${builtins.substring 9 3 ip_pub} IN PTR ${name}" + ]; }; records = {