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 3 of 15, other pages: 1 2 [3] 4 5 6 12 13 14 15
2013-04-01, 19:44:38
 
rating
2013-04-02, 02:48:02
 
rating
lbouaxuu http://paydayloansu..fsh.co.uk/ payday loans UK 8783 http://paydayloansa..iafsh.com/ payday loans australia 7354 http://paydayloansusafsh.com/ pay day loan 9977 http://paydayloansc..adafsh.ca/ pay day loan :-O
2013-04-02, 14:40:52
 
rating
ndwlmytg http://cheapviagradsb.com/ cheap viagra 1404 http://cheapcialisdsb.com/ find cheap cialis 5473
2013-04-02, 14:56:00
 
rating
kqhjdk http://cheapviagradsb.com/ cheap generic viagra >:-OOO http://cheapcialisdsb.com/ cheap cialis psWoL
2013-04-02, 18:24:57
 
rating
tlsddqpo http://buyviagradsb.com/ viagra 3567 http://buycialisdsb.com/ buy cialis soft online IYkynQ
2013-04-03, 03:57:27
 
rating
yrmcewjr http://genericviagradsc.com/ generic viagra rQsPhm http://genericcialisdsc.com/ generic cialis >:-[
2013-04-03, 07:47:00
 
rating
sxbmuzqa http://paydayloansu..fsh.co.uk/ payday loans ksmZct http://paydayloansusafsh.com/ fast cash advance 3590 http://paydayloansc..adafsh.ca/ pay day loans 1669 http://paydayloansa..iafsh.com/ payday loan gLVWS
2013-04-03, 14:10:07
 
rating
vdaiyhe http://buyviagradsb.com/ viagra Zvagq http://buycialisdsb.com/ buy cialis online now 1597
2013-04-03, 14:12:53
 
rating
hqzipo http://buyviagradsb.com/ where can i buy viagra online 1717 http://buycialisdsb.com/ buy cialis without prescription iEmMA
2013-04-04, 05:07:19
 
rating
cjqcxjw http://cheapviagradsb.com/ buy cheap viagra soft =-] http://cheapcialisdsb.com/ cheap cialis NCyIZ
2013-04-04, 06:31:54
 
rating
ixnqiu http://cheapviagradsb.com/ cheap viagra PbnDVC http://cheapcialisdsb.com/ cheap cialis %-[[[
2013-04-04, 15:44:56
 
rating
btfaltv http://viagraonlinedsb.com/ where can i buy viagra online bVpeIC http://cialisonlinedsb.com/ cialis online MZgCeT
2013-04-04, 15:58:48
 
rating
stvfhbv http://viagraonlinedsb.com/ buy viagra online >:-OOO http://cialisonlinedsb.com/ cialis online rnblkx
2013-04-04, 17:51:21
 
rating
2013-04-04, 21:43:56
 
rating
jsiwzcz http://paydayloansu..dsb.co.uk/ payday loans 8]]] http://paydayloansusadsb.com/ cash advance TCoydk http://paydayloansc..adadsb.ca/ payday loans wFCzlW http://paydayloansa..iadsb.com/ payday loans AuhlbB
You are on page 3 of 15, other pages: 1 2 [3] 4 5 6 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: