mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-17 10:36:07 +08:00
Network tests require the system resolver to resolve IP addresses back to host names, but "mdns4" seems to be unable to do that, and instead prevents "dns" from doing its job. So we place it after "dns". Done-with: Dimitrios Apostolou <jimis@qt.io> Done-with: Thiago Macieira <thiago.macieira@intel.com> Fixes: QTBUG-106013 Change-Id: If0379cf5f42b41964cf156cdf8691dbcfcc0275b Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
14 lines
475 B
Bash
Executable File
14 lines
475 B
Bash
Executable File
#!/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/.*/hosts: files mdns_minimal [NOTFOUND=return] dns mdns4/' /etc/nsswitch.conf
|