Preliminary checklist
Output of ddev utility test or ddev utility diagnose
Issue: DDEV fails to start because hostname cannot be added to the hosts file in Latest version of windows 11.Version 25H2 (OS Build 26200.8524).
Environment:
• OS: Windows with WSL
• DDEV command: ddev start my-wp-cli-site
• DDEV version: v1.25.2
•
Error while in No internet connection | Offline:
When running ddev start my-wp-cli-site, DDEV attempts to add my-wp-cli-site.ddev.site to the hosts file using ddev-hostname.exe. However, the operation fails because administrative privileges are required.
Console Output:
Starting my-wp-cli-site...
The hostname my-wp-cli-site.ddev.site is not currently resolvable, trying to add it to the hosts file
/usr/bin/ddev-hostname.exe needs to run with administrative privileges.
This is required to add unresolvable hostnames to the hosts file.
You may need to enter your password for sudo or allow elevation.
DDEV will issue the command:
/usr/bin/ddev-hostname.exe my-wp-cli-site.ddev.site 127.0.0.1
Failed to start my-wp-cli-site: : exit status 1
Expected Behavior
DDEV should successfully add the hostname entry and start the project.
Actual Behavior
DDEV exits with status 1 and the project does not start.
Notes:
The failure appears related to ddev-hostname.exe not obtaining the required elevated permissions to modify the Windows hosts file from the WSL environment.
The same setup works correctly on an older version of Windows 11.
The issue occurs on the latest version of Windows 11.
The problem was encountered while attempting to work on the project during a power outage when there was no internet connection available.
Steps To Reproduce
The issue occurs on the latest version of Windows 11 25H2 (OS Build 26200.8524)
he problem was encountered while attempting to work on the project during a power outage when there was no internet connection available.
Anything else?
No response
Preliminary checklist
ddev utility testor at leastddev utility diagnoseto include output belowOutput of
ddev utility testorddev utility diagnoseIssue: DDEV fails to start because hostname cannot be added to the hosts file in Latest version of windows 11.Version 25H2 (OS Build 26200.8524).
Environment:
• OS: Windows with WSL
• DDEV command: ddev start my-wp-cli-site
• DDEV version: v1.25.2
•
Error while in No internet connection | Offline:
When running ddev start my-wp-cli-site, DDEV attempts to add my-wp-cli-site.ddev.site to the hosts file using ddev-hostname.exe. However, the operation fails because administrative privileges are required.
Console Output:
Starting my-wp-cli-site...
The hostname my-wp-cli-site.ddev.site is not currently resolvable, trying to add it to the hosts file
/usr/bin/ddev-hostname.exe needs to run with administrative privileges.
This is required to add unresolvable hostnames to the hosts file.
You may need to enter your password for sudo or allow elevation.
DDEV will issue the command:
/usr/bin/ddev-hostname.exe my-wp-cli-site.ddev.site 127.0.0.1
Failed to start my-wp-cli-site: : exit status 1
Expected Behavior
DDEV should successfully add the hostname entry and start the project.
Actual Behavior
DDEV exits with status 1 and the project does not start.
Notes:
The failure appears related to ddev-hostname.exe not obtaining the required elevated permissions to modify the Windows hosts file from the WSL environment.
The same setup works correctly on an older version of Windows 11.
The issue occurs on the latest version of Windows 11.
The problem was encountered while attempting to work on the project during a power outage when there was no internet connection available.
Steps To Reproduce
The issue occurs on the latest version of Windows 11 25H2 (OS Build 26200.8524)
he problem was encountered while attempting to work on the project during a power outage when there was no internet connection available.
Anything else?
No response