473,796 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resolve multiple ip's

Does anyone know if there is a way to get all the IP's associated to a host
name from a DNS server? I'm thinking along the lines of Dns.Resolve Method.
But as stated in the remarks: .

The Resolve method queries a DNS server for the IP address associated with a
host name or IP address.

When hostName is a DNS-style host name associated with multiple IP
addresses, only the first IP address that resolves to that host name is
returned.

So basically, I want something that returns all the IP addresses.
Thanks for the help!
Nov 21 '05 #1
1 1812
http://www.dotnetspider.com/technolo...spx?ClassId=67
http://www.codeproject.com/useritems...imedout_op.asp

brcimo wrote:
Does anyone know if there is a way to get all the IP's associated to a host
name from a DNS server? I'm thinking along the lines of Dns.Resolve Method.
But as stated in the remarks: .

The Resolve method queries a DNS server for the IP address associated with a
host name or IP address.

When hostName is a DNS-style host name associated with multiple IP
addresses, only the first IP address that resolves to that host name is
returned.

So basically, I want something that returns all the IP addresses.
Thanks for the help!

Nov 21 '05 #2

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

Similar topics

2
6140
by: Rob Levine | last post by:
Hi All, This is a cut down version of a post from earlier entitled "Name resolution in .Net". Apologies, for the repeat, but I think the first post was too verbose (it came from a blog article of mine) and I think a shorter post here is probably more appropriate. I am seeing some incorrect behaviour on System.Net.Dns.Resolve( hostname ) It would appear that this does more than just a DNS lookup (which is what it says in the...
1
1489
by: Craig G | last post by:
i am having problems with my development environment i have a webservice (mywebservice.asmx) when i add the web reference into the development environment it will only allow me to use the machine name to specify the URL of the web reference. if i replace the machine name with the IP address it is unable to resolve the IP address. is there a settin or something that would be preventing me from doing this?
1
1984
by: Peter Treier | last post by:
Hi all i got the folowing problem. I need to resolve the endpoint (target IP Adresss) of a IP Network connection. I got a established connection from 123.123.123.123:6000 What i need to know is the target IP Address and Port
18
3398
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site relies on subscrption fees. Sessions ID's are matched between the browser and the server. So a users can login with same username and password and those sessions are tracked individually. Some suggest create table fields with the session ID...
7
2158
by: kvnsdr | last post by:
I can type an IP address and receive Internet domain name and my workstation name however no other IPs of computers on our internal network will resolve to a thier machine name only to the same IP that is entered. What's up Microsoft???? I can say that before we switched over .NET 1.1 to 2.0 the Dns.Resolve(entry); would find a name for any IP, LAN or WAN. Q. Any ideas??????????
0
4193
by: Mike Kansky | last post by:
DNS.GetHostByAddress runs very slow for foreign IPs. I heard that DNS.BeginResolve can make asynchronous IP to Host resolve. Can anyone provide me an example of VB.NET code that would make asynchronous DNS.beginResolve call? I need it to make a try to resolve the IP to HOST and to quit if it's taking longer than 5 seconds.
35
9367
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from 500000 to 3200000 of a file whose size is say 20MB... how do i request a download which starts directly at 500000th byte... thank u cheers
0
1157
by: Usman Jamil | last post by:
Hi I'm writing a socket client application in C#. The problem is that the statement IPHostEntry hostEntry = Dns.Resolve(szIPAddress); takes too much time. Even if the IP address is of a system within the LAN, this takes around 10-12 seconds. Does anyone have any idea why does it take too long to resolve an IP address. Is there any work around for this issue.
5
14559
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I am trying to get the DNS name of an arbitrary IP address on the network. If I use GetHostEntry as the documentation suggests I only get the name of the machine I am running the code on. All other IP’s returns the IP in the HostName property of the IPHostEntry object returned by GetHostEntry. If I use Dns.GetHostByAddress or Dns.Resolve I get the name, but these are marked as obsolete. What is the correct way to get this...
0
9533
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10461
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7555
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.