GEMTI18

______///////

Minggu, 28 Juni 2015

Membuat Aplikasi DNS Resolve Visual Studio


Aplikasi DNS Resolve
Aplikasi DNS Resolve
Menampilkan data Resolve DNS

Pengertian Resolve
Pembaruan/Perubahan Website setelah melakukan salah satu dari aktivitas-aktivitas seperti registrasi domain baru, ganti Name Server, dan setting DNS record (A, MX, CNAME, dsb). Maka saat itu website anda sedang masuk masa propagasi DNS, atau yang seringkali pula disebut dengan masa resolve.


Hasil DNS Resolving



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;


namespace Aplikasi_DNS_Address_Resolver

{
    public partial class Form1 : Form
    {
        TextBox address;
        ListBox results;
        private AsyncCallback OnResolved;
        public Form1()
        {
            InitializeComponent();
            Text = "DNS Address Resolver";
            Size = new Size(400, 380);
            OnResolved = new AsyncCallback(Resolved);
            Label label1 = new Label();
            label1.Parent = this;
            label1.Text = "Enter address to resolve:";
            label1.AutoSize = true;
            label1.Location = new Point(10, 10);
            address = new TextBox();
            address.Parent = this;
            address.Size = new Size(200, 2 * Font.Height);
            address.Location = new Point(10, 35);
            results = new ListBox();
            results.Parent = this;
            results.Location = new Point(10, 65);
            results.Size = new Size(350, 20 * Font.Height);
            Button checkit = new Button();
            checkit.Parent = this;
            checkit.Text = "Resolve";
            checkit.Location = new Point(235, 32);
            checkit.Size = new Size(7 * Font.Height, 2 * Font.Height);
            checkit.Click += new EventHandler(ButtonResolveOnClick);
        }
        void ButtonResolveOnClick(object obj, EventArgs ea)
            {
                results.Items.Clear();
                string addr = address.Text;
                Object state = new Object();
                
            }
        private void Resolved(IAsyncResult ar)
            {
                string buffer;
                IPHostEntry iphe = Dns.EndGetHostEntry(ar);
                buffer = "Host name: " + iphe.HostName;
                results.Items.Add(buffer);
                foreach(string alias in iphe.Aliases)
                    {
                        buffer = "Alias: " + alias;
                        results.Items.Add(buffer);
                    }
                foreach(IPAddress addrs in iphe.AddressList)
                    {
                        buffer = "Address: " + addrs.ToString();
                        results.Items.Add(buffer);
                    }
            }
   
        private void Form1_Load(object sender, EventArgs e)
        {


        }

    }
}



INGAT!!
Jika Anda kurang puas atau ingin menambahkan ide
Anda dapat mengkostumnya di Form/View code nya

Untuk keterangan lebih lanjut lihat slide
Download Slide
Download Program


Selamat mencoba,
Semoga Bermanfaat.

1 komentar:

cara dapetin hasil kaya gtu gimana ? Kok saya gak bisa ?

Posting Komentar

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More