DelphiFAQ Home Search:

Determine the DNS server address when connected through dialup

 

comments215 comments. Current rating: 3 stars (209 votes). Leave comments and/ or rate it.

Question:

I get the DNS server address assigned by my ISP dynamically and need to (programmatically) read the DNS server addresses.

Answer:

Under Windows 2000 and newer, use the command line tool ipconfig with parameter /all:

ipconfig /all

This will return among other information all DNS server ip addresses. If you're writing code in a high-level language, span this program, redirect the output to a text file and afterwards read the lines preceeded by the keyword DNS-Server. (Valid for XP, the actual keyword may be different in other Windows versions.)

Under Windows 95 and Windows 98 there is no tool ipconfig. Instead you can use WinIPcfg (which is a graphical tool; cannot be read from your own application if that was desired.)

Under Linux the command is ifconfig.

Content-type: text/html

Comments:

You are on page 4 of 15, other pages: 1 2 3 [4] 5 6 7 12 13 14 15
2013-04-05, 14:15:00
 
rating
tnbxuz http://orderviagradsb.com/ viagra order uk 2049 http://ordercialisdsb.com/ order cialis %-[[[
2013-04-05, 14:37:09
 
rating
hcxjuqf http://paydayloansu..dsb.co.uk/ pay day loans 8916 http://paydayloansa..iadsb.com/ payday loans australia 9439 http://paydayloansusadsb.com/ fast cash advance 8]]] http://paydayloansc..adadsb.ca/ pay day loans eBCMU
2013-04-05, 14:45:42
 
rating
eggzenq http://paydayloansa..iadsb.com/ payday loans 4394 http://paydayloansc..adadsb.ca/ payday loans online =-] http://paydayloansusadsb.com/ cash advance 6007 http://paydayloansu..dsb.co.uk/ short term loan 4085
2013-04-05, 16:43:16
 
rating
xvgfcvns http://orderviagradsb.com/ order 50mg viagra >:]] http://ordercialisdsb.com/ order cialis online >:-[
2013-04-05, 23:43:30
 
rating
vjjwlik http://viagraonlinefsc.com/ order viagra online 5643 http://cialisonlinefsc.com/ lowest cialis price online 8415
2013-04-06, 00:29:24
 
rating
tjlznk http://paydayloansu..fsj.co.uk/ payday advances 8]]] http://paydayloansa..iafsj.com/ payday loans oFuXPC http://paydayloansusafsj.com/ payday loan 4088 http://paydayloansc..adafsj.ca/ pay day loans 8]]]
2013-04-06, 14:49:28
 
rating
lyinzh http://genericviagradsb.com/ generic cheap viagra 9847 http://genericcialisdsb.com/ generic cialis doctor online 1111
2013-04-06, 15:28:40
 
rating
qpuuqhvx http://paydayloansu..fsj.co.uk/ payday cash CUDKZ http://paydayloansa..iafsj.com/ payday loans fUxLP http://paydayloansusafsj.com/ fast cash advance 5489 http://paydayloansc..adafsj.ca/ payday loan YPRnog
2013-04-06, 16:11:30
 
rating
igvyrxlr http://paydayloansa..iafsj.com/ payday loans FnrWii http://paydayloansc..adafsj.ca/ payday loans 8]]] http://paydayloansusafsj.com/ fast cash advance ITnKd http://paydayloansu..fsj.co.uk/ quickquid >:]]
2013-04-06, 16:44:48
 
rating
ieffkx http://genericviagradsb.com/ generic viagra aaPBo http://genericcialisdsb.com/ generic cialis >:]]
2013-04-06, 17:38:09
 
rating
gcmnpa http://buyviagrafsc.com/ viagra 9764 http://buycialisfsc.com/ buy generic cialis %-[[[
2013-04-06, 18:45:28
 
rating
ekrufrpj http://buyviagrafsc.com/ buy generic viagra 8]]] http://buycialisfsc.com/ buy cialis delived next day 9401
2013-04-07, 13:56:58
 
rating
nsyapx http://buyviagrafsc.com/ viagra 9782 http://buycialisfsc.com/ buy cialis online CfRjIw
2013-04-07, 16:13:48
 
rating
qjwwgau http://buyviagrafsc.com/ buy viagra 2848 http://buycialisfsc.com/ cialis %-[[[
2013-04-08, 04:45:53
 
rating
usarjxgu http://genericviagradsb.com/ generic viagra >:]] http://genericcialisdsb.com/ generic cialis rwQvq
You are on page 4 of 15, other pages: 1 2 3 [4] 5 6 7 12 13 14 15

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: