Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: I want to write a batch file to get the DNS numbers behind a router.

10 Jul 2011   #11
techs

Windows 7 Professional 64bit
 
 

Well, it doesn't seem to do what I want to do.
However, I would like to thank ALL of you for your interest and help.

Cheers.


My System SpecsSystem Spec
.
10 Jul 2011   #12
Ztruker

Windows 10 Pro X64
 
 

You said you wanted an easy/automated way to get the DNS server addresses.

What exactly do you want. This is fun stuff so ask away

If you put this ina batch (.bat) file you can place a link to it on the Desktop:
Code:
cmd /k ipconfig /all | find "DNS Servers"
It will open a Command Prompt window with the result displayed for you.
My System SpecsSystem Spec
15 Jul 2011   #13
techs

Windows 7 Professional 64bit
 
 

Quote   Quote: Originally Posted by Ztruker View Post
You said you wanted an easy/automated way to get the DNS server addresses.

What exactly do you want. This is fun stuff so ask away

If you put this ina batch (.bat) file you can place a link to it on the Desktop:
Code:
cmd /k ipconfig /all | find "DNS Servers"
It will open a Command Prompt window with the result displayed for you.
That gives me the ip of the router, not the dns servers the router is using.

Yah, this is something I just wanted to play around with.

A few years ago I found it simple to just place a batch file on all my client computers, which basically did a release, renew for ipconfig. Saved some time with explaining to customers how to open a command prompt, which was the backslash key, etc.

I thought maybe I could do something with this.
My System SpecsSystem Spec
.

16 Jul 2011   #14
Ztruker

Windows 10 Pro X64
 
 

I looked at this some more and I don't find any way to get the DNS addresses. I did find a way using wget to get your external IP address but no DNS.

I started with this info: Command line app needed to find external ip
My System SpecsSystem Spec
Reply

 I want to write a batch file to get the DNS numbers behind a router.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How i write arabic numbers
How i write arabic numbers (12345 in arabic style) in ms office 2007 with window 7
Microsoft Office
How can I write a batch file that opens a file in a program?
I wrote this batch file which does what I want it to do so far. @echo off "C:\Users\xxxxxx\Documents\HideTaskbar\HideTaskbar.exe" "C:\Program Files (x86)\VideoLANold\VLC\vlc.exe" "C:\Users\xxxxxx\Documents\HideTaskbar\ShowTaskbar.exe" exit
General Discussion
Serial read/write in batch file?
Hello all. I'm trying to write a request to COM2 and capture the answer. My device is 19200 baud 8/1 non parity. Using a freeware terminal called termite I can send the hex instruction and receive the answer, as verified in HHD serial monitor. My batch file looks like this: MODE COM2:...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
How do I write batch file to delete thousands of files
Was infected by the matsnu1 virus recently which encrypes and locks all your data files. Got all my files back by running matsnu1decryp.exe You need an original clean file before the virus struck for it to work out how to decrypt all your other files does does save the day. Down side is that you...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:39.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App