DelphiFAQ Home Search:

Determine the DNS server address when connected through dialup


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


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


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


You are on page 1 of 15, other pages: [1] 2 3 4 12 13 14 15
2006-03-18, 11:11:03 from United States  
This just might help in my situation. I am not sure what I should do. I am running Windows Media Center and I have AOL on a Dial-Up. I am NOT NETWORKED. I do not want to be a server. Just a plain old workstation. However it seems that the system is in some way set up as a Domain Server. A couple of problems I don't understand. First is the fact that if I try and update the time to sync to the internet I get an error RPC server is unavailable 0x800706ba. I also have two event errors. 1) Event Source MSSQL$MICROSOFTBCM The description for Event ID ( 19011 ) in Source ( MSSQL$MICROSOFTBCM ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: (SpnRegister) : Error 1355. Next 2)Event Source TcpipThe system detected that network adapter \DEVICE\TCPIP_{B0A28E01-AF6D-4F97-843A-E81AF5408861} was disconnected from the network, and the adapter's network configuration has been released. If the network adapter was not disconnected, this may indicate that it has malfunctioned. And now I have a new error as I tried to go into Add/Remove Programs Window Components - just to see if I any programs I could remove. Now I get an error =Setup unable to open information file Fxsocm.inf 0x2 at line 2088999411. Now this would not be a problem for most people but I own a Blank Blank DELL who have decided that it is more important to have Nortan Ghost instead of sending you DVD's. So I can not run a SFC/scannow or open the set for XP files off a Disk. Now I do have an older version of the media center from them Do you think I could use any of that DVD to help clean up some of this mess?
2012-07-23, 22:39:08
anonymous from United States  
2013-01-08, 18:48:18
anonymous from China  
2013-02-11, 23:37:35
hznwno <a href=' '>payday loans</a> JUiqK <a href=' '>pay day loans</a> >:]] <a href=' '>quick quid</a> MjQnb
2013-03-06, 17:23:29
2013-03-09, 06:09:22
2013-03-09, 08:46:37
2013-03-09, 20:11:54
2013-03-11, 23:34:16
eekfwhu where can i buy viagra online bJqyP cialis online 7068 buy cheap viagra online uk 6376 buy generic cialis online 5070
2013-03-12, 22:39:45
uqqegvn payday loan nXlbJ payday loans %-[[[ instant Payday Loans 0101 payday loans 8]]]
2013-03-13, 00:09:26
2013-03-14, 12:25:01
bfzbkz Bad Credit Loans >:-[ payday loans :-O payday loans KHORqh payday loans online 5242
2013-03-16, 00:03:44
2013-03-16, 00:46:22
2013-03-19, 03:03:52
jpwxmx payday loans australia 8]]] cash advance 9050 online payday YNUsgD payday loans >:-[
You are on page 1 of 15, other pages: [1] 2 3 4 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: