unknown host (gethostbyname failed) “80072ee7” Error in SCCM
I’ve had some problems recently with deploying clients in my lab environment with the error unknown host (gethostbyname failed)80072ee7. The problem shows itself by:
- Client boots up and receives boot image = Fine
- Windows PE is loaded by the client = Fine
- Restart occurs as soon as Windows PE loads = NOT FINE
I started up the installation again and pressed F8 before the computer restarted and went to X:\Windows\Temp\SMSTSLOG\smsts.log and had a look.
In the log I found this error:
Unknown host (gethostbyname failed)
sending with winhttp failed; 80072ee7
Failed to get information for MP: http://sccm.newtech.local . 80072ee7
I tried to ping my SCCM server called “sccm”. Worked perfectly. But then I tried to enter in the whole FQDN “ping sccm.newtech.local” and all of a sudden the name was not able to be resolved. Why was this happening? Tried to ping sccm.newtech.local from another server and it worked perfectly.
The reason for this is that SCCM OSD is reliant on DHCP and receives the DNS server that is specified in the DHCP scope.
This is how I solved it:
1. Go to the DHCP control panel -> DHCP Scope Options -> Right-click -> Configure Options
2. Select “006 DNS Servers” and then add the IP adress of the DNS server. If it’s on the local server, enter the IP (ie. 10.0.0.3) and not the loopback address (127.0.0.1).
This worked for me! Feel free to drop a comment!
- Solve issue with Secure Boot in Hyper-V on non-supported Operating Systems
- Don’t forget this step if you want clients to PXE boot using SCCM
- Issue with DHCP and WDS on the same server
About the author
Daniel Classon works as a Senior Consultant at Mansoft, focusing on Microsoft Configuration Manager, Windows 10 and Powershell