nixos/estuary: Override nix-cache.nul.ie to not hairpin via Cloudflare

This commit is contained in:
Jack O'Sullivan 2022-07-16 21:32:46 +01:00
parent 1b67ac1da0
commit 963eeee391

View File

@ -72,6 +72,19 @@ in
webserver = true;
webserver-address = "::";
webserver-allow-from = [ "127.0.0.1" "::1" ];
lua-dns-script = pkgs.writeText "pdns-script.lua" ''
function preresolve(dq)
if dq.qname:equal("nix-cache.nul.ie") then
dq:addAnswer(pdns.CNAME, "http.fra1.int.nul.ie.")
dq.rcode = 0
dq.followupFunction = "followCNAMERecords"
return true
end
return false
end
'';
};
};
};