Tento program ma služiť na ukazanie DNSmena s Ip adresy,,
Kód:
private void btnDNS_Click(object sender, EventArgs e)
{
string IPAdresa = tbDNS.Text;
IPAddress[] addresslist = Dns.GetHostAddresses(IPAdresa);
foreach (IPAddress[] adresa in addresslist)
{
lblDNS.Text = adresa.ToString();
}
}
[c]Error 1 Cannot convert type 'System.Net.IPAddress' to 'System.Net.IPAddress[]'[/c]
Nejake rady ako by som mohol odstraniť error ? Vopred ďakujem.