Sign in to follow this  
Followers 0
Ejoc

Add DNS server

4 posts in this topic

#1 ·  Posted (edited)

So I don't see an easy way(it probably exists) to add a DNS server to my list of DNS servers.

Basicly my ISP blows and from time to time and their Name Servers go down, but everything else is fine. So I want to to use the Name Servers I get from DHCP, but I want to add a 3rd server so when my ISPs name servers go down it will have another one to goto.

Seems like I should be able to use netsh, but I cannot get it to work...

This does set it to use the DNS servers supplied via DHCP:

netsh interface ip set dns "Local Area Connection" dhcp

But this removes the DHCP acquired servers and only gives me the one supplied, even tho I tell it to be the 3rd server:

netsh interface ip add dns "Local Area Connection" x.x.x.x index=3
Edited by Ejoc

Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites



But this removes the DHCP acquired servers and only gives me the one supplied, even tho I tell it to be the 3rd server:

netsh interface ip add dns "Local Area Connection" x.x.x.x index=3

<{POST_SNAPBACK}>

I couldn't just take your word for it so I sorta temporarily screwed myself by trying that. :)

when you specify a DNS server it switches the the TCP/IP settings from "Obtain DNS..." to "Use the following..." and since there aren't any specified at that point, the index=3 becomes meaningless. My suggestion would be to hardcode your ISPs primary as your primary and whatever backup you want as secondary and just forget about it. Or if your're a masochist, read the primary and secondary before making the change and set all three when you make the change. But it seems to me that'd be rather pointless since the reason you're changing them is because they don't work anyway!


601DisengageEnd Program

Share this post


Link to post
Share on other sites

I guess I'll have to get the servers, then add them and an alternate staticly. Should work ok, since even when the DNS servers are down DHCP still gives out their IPs.


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

I said the hell with it and installed Bind, so I have my own name server running :)


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

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