DelphiFAQ Home Search:

Determine the DNS server address when connected through dialup

 

comments216 comments. Current rating: 3 stars (210 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 15 of 15, other pages: 1 2 3 12 13 14 [15]
2014-08-11, 03:43:49
sameday loan  
rating
zviikh http://paydayloansqxj.com/ sameday loan bafXmw http://paydayloansqxf.com/ spot loan 6838 http://paydayloansqxd.com/ payday loans ZTtWrR http://paydayloansqxs.com/ money mutual 5147 http://paydayloansqxq.com/ sameday payday loans online 0154
2014-08-16, 06:23:59
payday loans  
rating
jqdhnsuz http://paydayloans24x7.com/ payday loans 3635 http://2012paydayloans.net/ payday loans 4272 http://paydayloansusaplg.com/ payday loans 3573 http://paydayloansnsa.com/ payday loans tuiNL http://paydayloansqda.com/ payday loans 5281
2014-08-18, 00:22:11
next day loans  
rating
spvrcyil http://paydayloansqxb.com/ next day loans zxFTH http://paydayloansqxi.com/ payday loans 9812 http://paydayloansqxo.com/ payday loans 4376 http://paydayloansqxl.com/ money mutual :-O http://paydayloansqxr.com/ payday loans >:-[
2014-11-26, 09:19:19
payday loans  
rating
lctqmtsp http://paydayloansqdq.com/ payday loans vkprzW http://paydayloansnsa.com/ payday loans qxtva http://paydayloansvmg.com/ payday loans >:-OOO http://2012paydayloans.net/ payday loans 1184 http://paydayloanshsh.com/ payday loans %-[[[ http://paydayloansbra.com/ payday loans OVOxr
2014-11-28, 09:40:51
payday loans  
rating
feseemqa http://paydayloanshsh.com/ payday loans HMFQt http://paydayloansvmg.com/ payday loans :-O http://paydayloansbra.com/ pay day loans 8]]] http://2012paydayloans.net/ payday loans cAzQwo http://paydayloansnsa.com/ payday loans qaraR http://paydayloansqdq.com/ payday loans 9136
2015-04-08, 14:26:39
utsyynm  
rating
aivrhe
You are on page 15 of 15, other pages: 1 2 3 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: