Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Net;
- namespace DNS
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] domains = { "www.google.com", "www.bing.com", "www.subscene.com", "www.facebook.com", "www.legendas.tv"};
- foreach (string domain in domains)
- {
- Console.WriteLine("DNS: {0}", domain);
- foreach (IPAddress ip in Dns.GetHostAddresses(domain))
- {
- Console.WriteLine(ip.ToString());
- }
- Console.WriteLine("=========================");
- }
- Console.ReadLine(); // wait here
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement