diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2022-04-13 17:48:53 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2022-04-14 17:31:27 +0200 |
commit | fe27976534472b042d41f7b30c0aa0af6e8a7444 (patch) | |
tree | af8fa3da4ddc2b75903dc031e1f7e279f6835f36 /nixos/tests/pdns-recursor.nix | |
parent | fd480f55df0647f8739546ffa9fa780ce17f0a91 (diff) |
nixos/tests/pdns-recursor: test a DNS query
Diffstat (limited to 'nixos/tests/pdns-recursor.nix')
-rw-r--r-- | nixos/tests/pdns-recursor.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/pdns-recursor.nix b/nixos/tests/pdns-recursor.nix index de1b60e0b1c78..cf473a064313d 100644 --- a/nixos/tests/pdns-recursor.nix +++ b/nixos/tests/pdns-recursor.nix @@ -1,12 +1,15 @@ import ./make-test-python.nix ({ pkgs, ... }: { - name = "powerdns"; + name = "powerdns-recursor"; nodes.server = { ... }: { services.pdns-recursor.enable = true; + services.pdns-recursor.exportHosts= true; + networking.hosts."192.0.2.1" = [ "example.com" ]; }; testScript = '' server.wait_for_unit("pdns-recursor") server.wait_for_open_port("53") + assert "192.0.2.1" in server.succeed("host example.com localhost") ''; }) |