Jump to content

Dns'yi Reg Ile Değiştirmek


mmtsahindmn
 Share

Recommended Posts

' SetStaticIP.vbs

' SET STATIC IP
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colNetAdapters = objWMIService.ExecQuery _
    ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")

' ENABLE DNS
For Each objNetAdapter in colNetAdapters
    arrDNSServers = Array("8.8.8.8", "8.8.4.4")
    objNetAdapter.SetDNSServerSearchOrder(arrDNSServers)
Next

Link to comment
Share on other sites

Böyle bir içerik buldum.32x 64xde bu konum mevcut :)

 

 

 

# Flush the existing DNS cache

# Start > Run (type) regedit
# Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters

# Click Edit > New > DWORD Value (type) MaxCacheTtl

# Click Edit > New > DWORD Value (type) MaxNegativeCacheTtl

# Next right-click on the MaxCacheTtl entry (right pane) and select: Modify and change the value to 1

# The MaxNegativeCacheTtl entry should already have a value of 0 (leave it that way - see screenshot)

# Close Regedit and reboot ..
--
Edited by NotToday
Link to comment
Share on other sites

reg dosyası olarak kaydedin.. çalışıyor ..

istediğiniz dns adresini girin en alta

[codeh]Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters\Interfaces\{7478356B-D043-4A4B-AD61-FE158BAB3C93}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"NameServer"="208.67.222.222,208.67.220.220"[/codeh]

 

birde mozillanın bu eklentisi ile ip no değiştirip giriş yapabilirsiniz

xGdm32.jpg

Edited by major_ata
Link to comment
Share on other sites

Airties kullanan arkadaşlar için modem open dns girmek ;

 

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd"
WScript.Sleep 100
WshShell.AppActivate "C:\Windows\system32\cmd.exe"
WScript.Sleep 100
WshShell.SendKeys "telnet 192.168.2.1{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "root{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "Şifre gir{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "cd /etc/{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 208.67.222.222 > dproxy.conf{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 208.67.220.220 >> dproxy.conf{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 8.8.8.8 >>> dproxy.conf{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}"
WScript.Sleep 200
 
 
Şifre gir yazan yere modemin şifresini girin ve vbs olarak dosyayı kayıt edin çift tıklayın.!
Edited by ekran
Link to comment
Share on other sites

 

Airties kullanan arkadaşlar için modem open dns girmek ;

 

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "cmd"
WScript.Sleep 100
WshShell.AppActivate "C:\Windows\system32\cmd.exe"
WScript.Sleep 100
WshShell.SendKeys "telnet 192.168.2.1{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "root{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "Şifre gir{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "cd /etc/{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 208.67.222.222 > dproxy.conf{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 208.67.220.220 >> dproxy.conf{ENTER}"
WScript.Sleep 100
WshShell.SendKeys "echo nameserver 8.8.8.8 >>> dproxy.conf{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "exit{ENTER}"
WScript.Sleep 200
 
 
Şifre gir yazan yere modemin şifresini girin ve vbs olarak dosyayı kayıt edin çift tıklayın.!

 

bunun modem resetleme komutu da varmı

Link to comment
Share on other sites

reg dosyası olarak kaydedin.. çalışıyor ..

istediğiniz dns adresini girin en alta

[codeh]Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters\Interfaces\{7478356B-D043-4A4B-AD61-FE158BAB3C93}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"NameServer"="208.67.222.222,208.67.220.220"[/codeh]

Regedit ayarı çalışmadı SafeDNS'yi yapmayı denemiştim.

 

Bende bu şekilde çalışıyor her bilgisayarda bu regedit bölümü farklılık mı gösteriyor acaba?

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\{B5ADBD7D-66C0-4B2A-8D4D-A7D027CB4B34}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"NameServer"="195.46.39.39,195.46.39.40"
Edited by BOMBOM07
Link to comment
Share on other sites

ben bi bat komutu denedim ama dnsnın ılk sırasını degıstırıyor ıkıncı sıranın komutu nasıl olacak acaba?

 

dns:

205.171.2.65

205.171.3.65

 

bat komutu

[codeh]

 

 

 

netsh interface ip set dns "wifi" static 205.171.2.65

 

[/codeh]

çalıstırınca

 

pre_1396124701__d.png

bu sekılde ılk sıra tek degısıyor

komutu duzgun calısması ıcın nasıl düzenlemem gerekır

Link to comment
Share on other sites

VBScript ile yapmak mümkün;

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter in colNetAdapters
arrDNSServers = Array("195.46.39.39", "195.46.39.40")
objNetAdapter.SetDNSServerSearchOrder(arrDNSServers)
Next

arrDNSServers kısmındaki IP numaralarını istediğiniz gibi değiştirebilirsiniz.

 

 

SafeDNS VBScript'i;

http://www.solidfiles.com/d/7369275b64/SafeDNS.vbs

 

.vbs'yi .exe'ye çevirme;

(Programa 30 tane icon eklenip; portable yapılmıştır.)

http://www.solidfiles.com/d/465ac6c086/Exe_From_VBScript.exe

Edited by BOMBOM07
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...