Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8083827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:35:58+00:00 2026-06-05T17:35:58+00:00

When I call Dns.GetHostEntry(SomeServerName) from a console application on my desktop it resolves the

  • 0

When I call Dns.GetHostEntry(“SomeServerName”) from a console application on my desktop it resolves the IP address just fine. When I execute the same code in an ASP.NET application, also running on my desktop, I get a SocketException with the message “Unknown host”.

I sense that there may be wrong with my IIS / ASP.NET installation, but I don’t have the time right now to try reinstalling.

As a test, I changed the identity of the ASP.NET account in the machine.config to use my own network credentials, but that didn’t make any difference.

Any ideas?

Update:

It seems I need to clarify. I’m having problems doing network communication from ASP.NET on my workstation. This includes trying to send emails using the SmtpClient and also trying to connect to a IBM DB2 via an ODBC connection. These things all work fine when running in a console application. The root cause seems to be that when the code is running under ASP.NET, DNS resolution fails, although I have no idea why. The only difference I can think of is the security context.

Update 2:

Here are some results from running Wireshark:
When the call is made from a console application, I immediately see 2 “Standard Domain Name System Queries” being sent across the network.
When the same call is made from an ASP.NET application, after a delay of about 8 seconds, I see 3 “NetBIOS Name Service Queries” being sent across the network.
Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:36:00+00:00Added an answer on June 5, 2026 at 5:36 pm

    Problem solved : The antivirus program on my workstation was explicitly blocking outgoing connections from IIS, ostensibly to stop worms from spreading around the network.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I call a javascript function from a textbox by using OnKeyPress=clickSearchButton() Here is my
I call a certain div from another page with jquery to be loaded into
I'm trying to get an MX record from an DNS server in C. My
call dword ptr __imp__VirtualProtect@16 What exactly is the @ doing? Is it just part
Call me stupid but I just can't find the installation directory for this program.
I call this method on form load ivent GetProducts( ); This Query works fine
I'm using Delphi and need to get the current Windows DNS server IP address
I want to be able to call a function from a link (this function
I'm working on a webpage (let's call it example.com) and added the DNS record
I need to measure DNS Lookup time out of a java application. My idea

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.