1 2 3 4 5
--- - name: udp_test resolve dns1.example.com shell: kdig @127.0.0.1 dns1.example.com A register: res failed_when: '"192.0.2.1" not in res.stdout'