<p>I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible.</p>

[{'answer_id': 62139, 'author': 'Mladen Janković', 'author_id': 6300, 'author_profile': 'https://Stackoverflow.com/users/6300', 'pm_score': 0, 'selected': False, 'text': '<p>See <em><a href="http://msdn.microsoft.com/en-us/library/aa365968(VS.85).aspx" rel="nofollow noreferrer">GetNetowrkParams</a></em> method (Platform SDK: IP Helper)</p>\n'}, {'answer_id': 62144, 'author': 'kender', 'author_id': 4172, 'author_profile': 'https://Stackoverflow.com/users/4172', 'pm_score': 1, 'selected': False, 'text': '<p>Do you really need to know what is DNS server to do a lookup? </p>\n\n<p><a href="http://delphi.about.com/od/networking/l/aa103100a.htm" rel="nofollow noreferrer">Here</a> is a solution how to get a IP address using 2 functions: GetHostName and GetHostByName. I assume the GetHostByName function does the lookup you need for you, or am I wrong? </p>\n'}, {'answer_id': 62150, 'author': 'DeeCee', 'author_id': 5895, 'author_profile': 'https://Stackoverflow.com/users/5895', 'pm_score': 3, 'selected': True, 'text': '<p>Found a nice one using the function GetNetworkParams().Seems to work quite good.\nYou can find it here:\n<a href="http://www.swissdelphicenter.ch/torry/showcode.php?id=2452" rel="nofollow noreferrer">http://www.swissdelphicenter.ch/torry/showcode.php?id=2452</a></p>\n'}]
['https://Stackoverflow.com/questions/62127', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5544/']