473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Domains

I know this is a little off topic but you guys are the best and i know
somebdoy out there will have the answer to my question :

I need to know how to find out all the domain names on the internet or if
thats not possible a method of determining
a domain name from any given ip address.

--
Terry Burns
http://TrainingOn.net
Mar 26 '06 #1
1 936
Using Visual Studio 2005, put two text boxes and one command button on a
form and use this code. It will handle either a name or a numeric IP
address

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Windows.Forms.Cursor.Current = Cursors.WaitCursor
'first determine if a numeric Ip address or a name
Dim txtSearch As String = "", Result As String = ""
If IsNumeric(Replace(Trim(Me.TextBox1.Text), ".", "")) Then
txtSearch = Trim(Me.TextBox1.Text)
Dim host As System.Net.IPHostEntry
Try
host = System.Net.Dns.GetHostEntry(txtSearch)
Result = host.HostName.ToString
Catch ex As Exception
Windows.Forms.Cursor.Current = Cursors.Default
MsgBox(ex.Message)
End Try
Else 'need to change the host name into a numeric IP address
Dim host As System.Net.IPHostEntry
Try
host = System.Net.Dns.GetHostEntry(Trim(Me.TextBox1.Text) )
Catch ex As Exception
Windows.Forms.Cursor.Current = Cursors.Default
MsgBox(ex.Message)
Exit Sub
End Try

Result = host.AddressList(0).ToString
End If
Me.TextBox2.Text = Result
Windows.Forms.Cursor.Current = Cursors.Default
End Sub
"Terry Burns" <me@mine.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I know this is a little off topic but you guys are the best and i know
somebdoy out there will have the answer to my question :

I need to know how to find out all the domain names on the internet or if
thats not possible a method of determining
a domain name from any given ip address.

--
Terry Burns
http://TrainingOn.net

Mar 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: d.schulz81 | last post by:
Hi all, We have about 10 different domains that are linked very closely and we want to identify and keep track of every single user that surfs our websites by the use of sessions. The problem...
7
by: | last post by:
I think I may have a problem with the user of cookies in my centralized logon and registration system that I hoped could be consumed by all the sub-domains on my remote host IP. I built the...
1
by: Silver Arrow | last post by:
Iframe ReturnValue returns undefined if domains are not the same I am using a modal window and an iFrame to try and pull a return value back. IMPORTANT : I am doing this across domains. Main...
6
by: onetitfemme | last post by:
Domain are very cheap now adays. What would be the pros and cons of using different hosts served from the same server, say: www.blogyourbrainoff.com and www.yourbusiness.com
1
by: barbaraJacob | last post by:
Hi everyone! Must deliver my project tomorrow....It's nearly finished. I've set up a website to be published in 3 different domains. - same webserver (I mean physically the same machine) -...
1
by: Paul Fi | last post by:
I have some confusions about the two, is it possible to create threads inside a particular domain and have other threads created in another domain or do we create threads that will manipulate app...
3
by: Marc Eggenberger | last post by:
Hi there. I have the following environment: Active Directory running on Windows 2000. There is a root domain called ad.sys and within this root domain there are the following subdomains: ...
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
6
by: Ludvig | last post by:
I have various domains using the same application/assembly They differ in contents and design, based on a "site id", and get its information from an SQL server. Now I have to deploy the...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.