title: c# system.net.dns universal app (W10) not working
body: <p>I tried to get IP adress from DNS by using
  <code>IPAddress[] ip = Dns.GetHostAddresses("www.google.com");</code> in univesal c# windows app.</p>
  
  <p>But it shows me error<code>
  Error   CS0103  The name 'Dns' does not exist in the current context</code></p>
  
  <p>I tried it in console app, it works perfectly. Namespace System.Net doesnt contain Dns in win 10 universal app. Could you tell me, where is problem or another solution?</p>
  
  <p>My CODE</p>
  
  <pre><code>using System.Net;
  public MainPage()
  {
      this.InitializeComponent();
  }
  
  private void button_Click(object sender, RoutedEventArgs e)
  {
      string zaznam = In.Text;
      IPAddress[] ip = Dns.GetHostAddresses("www.google.com");
  }
  </code></pre>