ahayzen / nix-config

1 stars 0 forks source link

Use host DNS for docker in tests #132

Open ahayzen opened 1 month ago

ahayzen commented 1 month ago

Inside docker is unable to resolve vps or lab hosts as they use their own DNS and do not know about the /etc/hosts injections by nixos tests.

Try to make docker use the host DNS so that it can resolve these locations.

This is needed to be able to test rathole connections.

ahayzen commented 1 month ago
vm-test-run-vps-test> 127.0.0.1 localhost
vm-test-run-vps-test> ::1 localhost
vm-test-run-vps-test> 127.0.0.2 lab
vm-test-run-vps-test> ::1 lab
vm-test-run-vps-test> vps actual.ahayzen.com bitwarden.ahayzen.com ahayzen.com yumekasaito.com
vm-test-run-vps-test> 192.168.1.1 backup
vm-test-run-vps-test> 192.168.1.2 lab
vm-test-run-vps-test> 192.168.1.3 vps