471,627 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

DNS .Resolve & .NET 2.0 Headache???

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??????????

[This is new .NET 2.0 method that replaced the former .Resolve method]

private void LookupIP(string entry)
{
try
{
IPHostEntry IP = Dns.GetHostEntry(entry);
txtBox2.Text = IP.HostName;
}
catch(Exception exception)
{
Feb 12 '06 #1
1 2118
Make sure your network settings are correct, GetHostEntry does a DNS
lookup, so you have to make sure they are reachable from your machine, best
way to do this is by issuing a nslookup <ipaddress> command.
Willy.


"kvnsdr" <ke***@upgrade1.com> wrote in message
news:11*************@corp.supernews.com...
|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??????????
|
| [This is new .NET 2.0 method that replaced the former .Resolve method]
|
| private void LookupIP(string entry)
| {
| try
| {
| IPHostEntry IP = Dns.GetHostEntry(entry);
| txtBox2.Text = IP.HostName;
| }
| catch(Exception exception)
| {
|
|
Feb 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

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.