在hosts中解析后获取当前请求的url地址,该如何解决

在hosts中解析后获取当前请求的url地址
在hosts中加入解析
127.0.0.1    www.baidu.com
在浏览器中输入www.baidu.com怎样在HttpContext中获取到访问到被解析的名字。
HttpContext.Current.Request.Url.Host只能取到"localhost"
请大神帮忙解答。
------解决方案--------------------
本地? 你试着发布到iis 上看看弹出的是啥?
------解决方案--------------------
引自Hosts file hostname not being returned in c# ASP.NET MVC

HttpContext.Current.Request.RawUrl 



string requestedDomain = HttpContext.Current.Request.ServerVariables["HTTP_HOST"];