Reputation: 1835
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 ?
Upvotes: 3
Views: 865
Reputation: 150108
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
ipconfig /flushdns
)Upvotes: 3