3

Can anyone explain me how the asp.net/iis gets SERVER_NAME variable ? The problem appears when we change our production domain name. The backend code returns old value by calling the following method Request.ServerVariables["SERVER_NAME"] . Could it be related to DNS update ?

1 Answer 1

3

The backend code returns old value by calling the following method Request.ServerVariables["SERVER_NAME"]

Generally this variable returns

The server's host name, DNS alias, or IP address as it would appear in self-referencing URLs.

Check

  • That the DNS changes have propogated to this server. Do a reverse DNS lookup on the server itself. If this is the case, flush the local DNS cache (ipconfig /flushdns)
  • Make sure the DNS PTR record has been correctly updated
  • That the host name isn't set to match the old DNS name
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.