Advertisement

07.03.2008 at 01:29PM PDT, ID: 23538099
[x]
Attachment Details

Obtaining and displaying Multiple DNS records

Asked by Andrew_Wallbank in Visual Basic Programming

Tags: Microsoft, Visual Basic, 2008 Express Edition, Visual Basic, 2008 Express Edition

I have a very basic VB program that obtains an IP address based on Hostname, using System.Net.Dns.GetHostEntry.

However it will only display a single record (the first found) for any hostname, even when I know there are multiple entries.

Here is the code

        Dim Host As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(TextBox1.Text)
        Dim IP As System.Net.IPAddress = Host.AddressList(0)

        TextBox2.Text = (IP.ToString)

The hostname is typed into a textbox and then the IP address displayed in a second text box when a button is clicked.

Nothing I can find will display more than a single entry.
Can this be done?Start Free Trial
[+][-]07.04.2008 at 04:42AM PDT, ID: 21932449

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: Microsoft, Visual Basic, 2008 Express Edition, Visual Basic, 2008 Express Edition
Sign Up Now!
Solution Provided By: imarshad
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.04.2008 at 04:57AM PDT, ID: 21932513

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 12:26PM PDT, ID: 21934515

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 12:38PM PDT, ID: 21934577

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 12:44PM PDT, ID: 21934604

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628