Sign in to follow this  
Followers 0
Zeeshaan

Change my pc's DNS

10 posts in this topic

Hi,

How do i change default DNS of my computer using AutoIt?

My Network Places --> View network connections --> Local Area Connection

Local Area Connection (Properties) --> Internet Protocol TCP/IP (Properties)

Use following DNS Server Address:

8.8.8.8

8.8.4.4

but i want to do the above thing in background mode.

without interfaring with windows automation or disturbing user's attention.

Share this post


Link to post
Share on other sites



try

RunWait ( @ComSpec & " /c netsh interface ip set dns Local static 8.8.8.8" )

RunWait ( @ComSpec & " /c netsh interface ip add dns Local 8.8.4.4" )


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

wakillon, i just noted that you 've been very helpful for forum. because you are always ready to help.

i saw some of your replies & appreciate your efforts and dedication for AutoIt Script.

Thanks for helping me too, keep it up.

Share this post


Link to post
Share on other sites

wakillon, i just noted that you 've been very helpful for forum. because you are always ready to help.

i saw some of your replies & appreciate your efforts and dedication for AutoIt Script.

Thanks for helping me too, keep it up.

I'm a bit confused Posted Image

Thanks !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

wakillon, i just noted that you 've been very helpful for forum. because you are always ready to help.

i saw some of your replies & appreciate your efforts and dedication for AutoIt Script.

Thanks for helping me too, keep it up.

+1

Same words from my side ;)

Thanks

Share this post


Link to post
Share on other sites

I'm a bit confused Posted Image

Thanks !

why?

Share this post


Link to post
Share on other sites

I usually work silently !

And in some months or years it's you who will help others ! Posted Image

I hope !


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

I usually work silently !

And in some months or years it's you who will help others ! Posted Image

I hope !

Sure... Great thought.

Share this post


Link to post
Share on other sites

can we go back to original DNS provided by ISP when need to change Using AutoIt?

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

can we go back to original DNS provided by ISP when need to change Using AutoIt?

Yes, but backup them before Posted Image

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0