<?xml version="1.0" encoding="utf-8"?>
<bug><id>35485</id><link>http://bugs.mysql.com/bug.php?id=35485</link><status>Verified</status><category>Server: Tests</category><sdesc>Wildcard hosts in DNS will result in failing mysql and mysql_upgrade tests</sdesc><ldesc>The tests mysql and mysql_upgrade fail when /etc/resolv.conf contains a search
domain which has wildcard hosts in DNS configured. The DNS resolves *.domain
to 1.2.3.4, so not_existing_host.domain also resolves to 1.2.3.4, resulting in
an unexpected error when running the test because 1.2.3.4 refused the
connection:

-mysqlcheck: Got error: 2005: Unknown MySQL server host &#039;not_existing_host&#039; (errno) when trying to connect
+mysqlcheck: Got error: 2003: Can&#039;t connect to MySQL server on &#039;not_existing_host&#039; (errno) when trying to connect

As discussed with Azundris on IRC I tried to use not_existing_host.invalid in the test and result files, but it didn&#039;t help:

-mysqlcheck: Got error: 2005: Unknown MySQL server host &#039;not_existing_host.invalid&#039; (errno) when trying to connect
+mysqlcheck: Got error: 2003: Can&#039;t connect to MySQL server on &#039;not_existing_host.invalid&#039; (errno) when trying to connect

As a quick workaround I just removed the search domain from resolv.conf.</ldesc><reporter>1067416</reporter><submitted>1206116741</submitted><modified>1259655486</modified><version>5.0.51a, 5.0.67, 5.1 bzr</version><os>Linux (Debian)</os><cpu_arch>Any</cpu_arch><severity>S3 (Non-critical)</severity></bug>