{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xNetworking/issues/164","repository_url":"https://api.github.com/repos/PowerShell/xNetworking","labels_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/164/comments","events_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/164/events","html_url":"https://github.com/PowerShell/xNetworking/issues/164","id":190512903,"number":164,"title":"DNS server address not being set ","user":{"login":"reicher001","id":23545526,"avatar_url":"https://avatars.githubusercontent.com/u/23545526?v=3","gravatar_id":"","url":"https://api.github.com/users/reicher001","html_url":"https://github.com/reicher001","followers_url":"https://api.github.com/users/reicher001/followers","following_url":"https://api.github.com/users/reicher001/following{/other_user}","gists_url":"https://api.github.com/users/reicher001/gists{/gist_id}","starred_url":"https://api.github.com/users/reicher001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicher001/subscriptions","organizations_url":"https://api.github.com/users/reicher001/orgs","repos_url":"https://api.github.com/users/reicher001/repos","events_url":"https://api.github.com/users/reicher001/events{/privacy}","received_events_url":"https://api.github.com/users/reicher001/received_events","type":"User","site_admin":false},"labels":[{"id":200151915,"url":"https://api.github.com/repos/PowerShell/xNetworking/labels/bug","name":"bug","color":"fc2929","default":true},{"id":216489963,"url":"https://api.github.com/repos/PowerShell/xNetworking/labels/waiting%20for%20the%20author","name":"waiting for the author","color":"ffff99","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-11-19T18:44:24Z","updated_at":"2016-11-20T22:08:25Z","closed_at":null,"body":"I am not getting any errors when I apply my config but the DNS settings are not being applied to the network interface.  I am also disabling IPv6 which works as expected.\r\n\r\nHere is my config in the resulting MOF file.\r\n\r\n> ...\r\n> instance of MSFT_xNetAdapterBinding as $MSFT_xNetAdapterBinding1ref\r\n> {\r\n> ResourceID = \"[xNetAdapterBinding]DisableIPv6\";\r\n>  State = \"Disabled\";\r\n>  ComponentId = \"ms_tcpip6\";\r\n>  SourceInfo = \"C:\\\\DSC_BuildDrop\\\\reportingServer.ps1::29::3::xNetAdapterBinding\";\r\n>  ModuleName = \"xNetworking\";\r\n>  InterfaceAlias = \"Ethernet 2\";\r\n>  ModuleVersion = \"3.0.0.0\";\r\n> \r\n>  ConfigurationName = \"reportingServer\";\r\n> \r\n> };\r\n> instance of MSFT_xDNSServerAddress as $MSFT_xDNSServerAddress1ref\r\n> {\r\n> ResourceID = \"[xDNSServerAddress]DnsServerAddress\";\r\n>  AddressFamily = \"IPv4\";\r\n>  SourceInfo = \"C:\\\\DSC_BuildDrop\\\\reportingServer.ps1::36::3::xDnsServerAddress\";\r\n>  Address = {\r\n>     \"192.168.0.4\",\r\n>     \"192.168.0.5\"\r\n> };\r\n>  ModuleName = \"xNetworking\";\r\n>  InterfaceAlias = \"Ethernet 2\";\r\n>  ModuleVersion = \"3.0.0.0\";\r\n> \r\n>  ConfigurationName = \"reportingServer\";\r\n> \r\n> };\r\n>...\r\n\r\n\r\nWhen I apply it I do not see any obvious error.\r\n\r\n> VERBOSE: [SSRS01]: LCM:  [ Start  Resource ]  [[xDNSServerAddress]DnsServerAddress]\r\n\r\n> VERBOSE: [SSRS01]: LCM:  [ Start  Test     ]  [[xDNSServerAddress]DnsServerAddress]\r\n> VERBOSE: [SSRS01]:                            [[xDNSServerAddress]DnsServerAddress] Importing the module\r\n> MSFT_xDNSServerAddress in force mode.\r\n> VERBOSE: [SSRS01]:                            [[xDNSServerAddress]DnsServerAddress] Test-TargetResource: Checking the\r\n> DNS Server Addresses.\r\n> VERBOSE: [SSRS01]:                            [[xDNSServerAddress]DnsServerAddress] Test-TargetResource: DNS Servers\r\n> are set correctly.\r\n> VERBOSE: [SSRS01]: LCM:  [ End    Test     ]  [[xDNSServerAddress]DnsServerAddress]  in 1.5400 seconds.\r\n> VERBOSE: [SSRS01]: LCM:  [ Skip   Set      ]  [[xDNSServerAddress]DnsServerAddress]\r\n> VERBOSE: [SSRS01]: LCM:  [ End    Resource ]  [[xDNSServerAddress]DnsServerAddress]\r\n\r\nWhat else can I do to troubleshoot this?"},"comment":{"url":"https://api.github.com/repos/PowerShell/xNetworking/issues/comments/261809765","html_url":"https://github.com/PowerShell/xNetworking/issues/164#issuecomment-261809765","issue_url":"https://api.github.com/repos/PowerShell/xNetworking/issues/164","id":261809765,"user":{"login":"reicher001","id":23545526,"avatar_url":"https://avatars.githubusercontent.com/u/23545526?v=3","gravatar_id":"","url":"https://api.github.com/users/reicher001","html_url":"https://github.com/reicher001","followers_url":"https://api.github.com/users/reicher001/followers","following_url":"https://api.github.com/users/reicher001/following{/other_user}","gists_url":"https://api.github.com/users/reicher001/gists{/gist_id}","starred_url":"https://api.github.com/users/reicher001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reicher001/subscriptions","organizations_url":"https://api.github.com/users/reicher001/orgs","repos_url":"https://api.github.com/users/reicher001/repos","events_url":"https://api.github.com/users/reicher001/events{/privacy}","received_events_url":"https://api.github.com/users/reicher001/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T22:08:25Z","updated_at":"2016-11-20T22:08:25Z","body":"I would assume that we can set DNS servers even if the IP address is coming from DHCP.  At least we have always been able to do that in the GUI.  That is what makes me think that DSC should be able to do this too. \r\n\r\nThis is strange."}}
{"actor":{"display_login":"reicher001"}}