Ubuntu 20.04 now resolves test dockers like vsftpd.test-net.qt.local

Task-number: QTBUG-86187
Change-Id: I050a915cb72f91374f40d3db5ee2d417181eda8a
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
This commit is contained in:
Dimitrios Apostolou
2020-10-14 18:10:32 +02:00
parent f44dfe9c34
commit 1dd03fc165

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# The new version of libnss-mdns resolver library automatically rejects all
# hostnames with more than two labels (i.e. subdomains deep), for example
# vsftpd.test-net.qt.local is automatically rejected. The changes here fix
# this, see also https://github.com/lathiat/nss-mdns#etcmdnsallow
cat <<EOT | sudo tee /etc/mdns.allow
.local.
.local
EOT
sudo sed -i '/^hosts:/s/mdns4_minimal/mdns4/' /etc/nsswitch.conf