void Set_GoogleDNS() { string cmd = "/C netsh interface ip set dns \"Yerel Ağ Bağlantısı\" static 8.8.8.8";
string cmd2 = "/C netsh interface ip add dns \"Yerel Ağ Bağlantısı\" static 8.8.4.4";
command1 += cmd;
command2 += cmd2;
Process.Start("cmd.exe", command1);
Process.Start("cmd.exe", command2);
}
void Set_OpenDNS()
{
string cmd = "/C netsh interface ip set dns \"Yerel Ağ Bağlantısı\" static 208.67.222.222";
string cmd2 = "/C netsh interface ip add dns \"Yerel Ağ Bağlantısı\" static 208.67.220.220";
command1 += cmd;
command2 += cmd2;
Process.Start("cmd.exe", command1);
Process.Start("cmd.exe", command2);
}
void Set_OpenDNS_FamilyShield()
{
string cmd = "/C netsh interface ip set dns \"Yerel Ağ Bağlantısı\" static 208.67.222.123";
string cmd2 = "/C netsh interface ip add dns \"Yerel Ağ Bağlantısı\" static 208.67.220.123";
command1 += cmd;
command2 += cmd2;
Process.Start("cmd.exe", command1);
Process.Start("cmd.exe", command2);
}
void Set_TtnetDns()
{
string cmd = "/C netsh interface ip set dns \"Yerel Ağ Bağlantısı\" static 195.175.39.40";
string cmd2 = "/C netsh interface ip add dns \"Yerel Ağ Bağlantısı\" static 195.175.39.39";
command1 += cmd;
command2 += cmd2;
Process.Start("cmd.exe", command1);
Process.Start("cmd.exe", command2);
}
void Set_OtomatikDNS()
{
string cmd = "/C netsh interface ip set dns \"Yerel Ağ Bağlantısı\" source = dhcp";
command1 += cmd;
Process.Start("cmd.exe", command1);
}
void DNS_Temizle()
{
string cmd = "/C ipconfig /flushdns";
command1 += cmd;
Process.Start("cmd.exe", command1);
}
string command1;
string command2;
private void button1_Click(object sender, EventArgs e)
{
Set_GoogleDNS();
MessageBox.Show("DNS'niz Google DNS ile değiştirildi");
}
private void button2_Click(object sender, EventArgs e)
{
Set_OpenDNS();
MessageBox.Show("DNS'niz Open DNS ile değiştirildi");
}
private void button3_Click(object sender, EventArgs e)
{
Set_OpenDNS_FamilyShield();
MessageBox.Show("DNS'niz Open DNS Family Shield ile değiştirildi");
}
private void button4_Click(object sender, EventArgs e)
{
Set_TtnetDns();
MessageBox.Show("DNS'niz TTNET DNS ile değiştirildi");
}
private void button5_Click(object sender, EventArgs e)
{
Set_OtomatikDNS();
MessageBox.Show("DNS'niz Otomatik DNS ile değiştirildi");
}