1 import ./make-test-python.nix ({ pkgs, ... }: {
2 name = "powerdns-recursor";
4 nodes.server = { ... }: {
5 services.pdns-recursor.enable = true;
6 services.pdns-recursor.exportHosts= true;
7 networking.hosts."192.0.2.1" = [ "example.com" ];
11 server.wait_for_unit("pdns-recursor")
12 server.wait_for_open_port(53)
13 assert "192.0.2.1" in server.succeed("host example.com localhost")