[php-src] PR #25905: Fix hostname resolution after DNS test resolver setup
| From: | bukka | Date: | Sun, 29 Nov 2026 20:57:23 +0000 |
| Subject: | [php-src] PR #25905: Fix hostname resolution after DNS test resolver setup | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41213@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25905
Author: bukka
The LINUX_X64 jobs started failing in the Setup step on all branches, e.g. https://github.com/php/php-src/actions/runs/46308125461/job/141488150654.
The new runner images (
ubuntu-24.04 version 20261122) have hostnames like
ip-10-0-136-195 that are not in /etc/hosts and are only resolvable through
systemd-resolved, which synthesizes the local hostname. Once resolv-setup.sh points
/etc/resolv.conf to the BIND test server, the hostname no longer resolves (sudo:
unable to resolve host ...), setup-slapd.sh ends up with an empty
subjectAltName and openssl req fails.
This adds the hostname to /etc/hosts in resolv-setup.sh when it is not
resolvable and removes it again in resolv-reset.sh.