DNSLookup Class
From RemObjects Software
This is a Internet Pack Architecture entry
Feel free to add your notes to this topic below.
Declaration
C#
public class DnsLookup;
Description
The DnsLookup class provides sttaic helper methods for resolving host names to IP addresses.
Members
Methods
| | |
|---|---|
| ResolveAll | ResolveAll returns an array with all IP addresses for the given host name. In load balancing scenarios, several IP addresses can be provided in the DNS servers for the same host name. It's usually up to the application to decide which IP address to use. If the host name could not be resolved, an empty array is returned. To retrieve one specific IP address, you will usually use ResolveFirst or ResolveAll. |
| ResolveFirst | Resolves the given host name and returns the first IP address that matches it. If the host could not be resolved, a DnsResolveException is thrown. |
| ResolveRandom | Resolves the given host name and - if multiple IP Addresses are avaiable - returns a random IP address from the list. This can be used in load balancing scenarios to hit a random of several available hosts. If the host could not be resolved, a DnsResolveException is thrown. |
| ReverseResolve | Obtains the host name for a given IP address via reverse-dns, if possible. |
Product: RemObjects Internet Pack
Current version: Internet Pack 'Vinci' (2.0)
Lists — Glossary — Features — How To — Components — Tools — Samples — Articles — Architecture — Issues
