Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xDnsServerAddress (IPv6) fails with Property NameServer does not exist #237

Closed
roneystein opened this issue Jul 25, 2017 · 4 comments
Closed
Assignees
Labels
bug The issue is a bug.

Comments

@roneystein
Copy link

In an IPv6 interface, after disabling DHCP and configuring the interface address, attempting to configure DNS server address results in:

"Property NameServer does not exist at path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\Interfaces{#interface#}."

Where #interface# is the interface identifier.

Configuration IPv6Dnsserver
{
    Import-DscResource -Module xNetworking
    Node 'localhost'
    {
        xDnsServerAddress IPv6DnsServer
        {
            Address        = '#ipaddress#'
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv6'
            Validate       = $false
        }
    }
}

With #ipaddress# being the DNS Server IPv6.
Worked fine on version 4.0.
OS is Windows 10.

@PlagueHO PlagueHO added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Jul 26, 2017
@PlagueHO
Copy link
Member

Hi @roneystein - I've identified the cause of the problem I think and should be able to fix it. I'll submit a PR today or tomorrow to get this fixed and it should go in before the next release.

Thanks for submitting this.

FYI: It is caused if the NameServer property does not exist for an interface in the registry. This error should have been suppressed but the Get-ItemPropertyValue cmdlet ignores the -ErrorAction SilentlyContinue parameter.

@PlagueHO
Copy link
Member

@roneystein - I've submitted a PR for this and should get it merged over the next few days (depending on how busy the other maintainers are). Thanks again!

@roneystein
Copy link
Author

@PlagueHO thanks for the feedback

@PlagueHO
Copy link
Member

@roneystein - no worries!

@joeyaiello joeyaiello removed the help wanted The issue is up for grabs for anyone in the community. label Jul 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants