python:tests: Tell dns.resolver to not read /etc/resolv.conf
commitb7b61025b65164327f5d375de38e92f0b6ddc4cf
authorAndreas Schneider <asn@samba.org>
Wed, 8 Feb 2023 11:21:10 +0000 (8 12:21 +0100)
committerJule Anger <janger@samba.org>
Fri, 24 Feb 2023 08:56:14 +0000 (24 08:56 +0000)
tree37ac679e8dd22f15781a2f4d8a778214a49a02b9
parent8739c9c72ddb346642e4adf98b1fb8f4440cf288
python:tests: Tell dns.resolver to not read /etc/resolv.conf

We explicitly set the nameserver in the next line. Also the file
/etc/resolv.conf might not exist on the system (e.g in Fedora mockbuild).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15308

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit c4dba61e3691a1fd15eb63ee69224457102bf961)
python/samba/tests/blackbox/netads_dns.py