guitarrapc / GraniResource

PowerShell Desired State Configuration Resources for real production workload.
https://www.powershellgallery.com/packages/GraniResource
MIT License
44 stars 8 forks source link

cHostsFile : Dynamic DNS Resolver on node side #38

Closed guitarrapc closed 9 years ago

guitarrapc commented 9 years ago

Currently DNS resolving statically when creating mof on DSC Server.

This is not useful at all, and need to be resolve at node side.

Even node hosts is defined, Resolve-DnsName -Name <TargetDns> -Server <DnsServer> can be handle specific dns.

Would be prefer add Write Key to mof and handle in psm1.

guitarrapc commented 9 years ago

Outside Dns Server can't be resolved when customize hosts file....?

guitarrapc commented 9 years ago

Required to add -DnsOnly switch. It can be resolve even you have modified hosts.