Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

when i enter and hit enter it does redirect to , and with 302 response, how sould i change my dns records to point to root without redirection? a tool redirect-check returns 302 found ,

i tried everything , at last i assume my dns configuration is wrong some way.

i am using bind dns on windows 2003 web server

share|improve this question

1 Answer 1

There's nothing wrong with your DNS. The domain name is resolving to the right thing. Your web server is generating the 302 redirect, because while the visitor asks for / they are being redirected to the default index page with a 302.

302's aren't a problem unless you're experiencing an actual issue.

Google returns a 302 redirect for example,

wget -S
--2011-08-16 21:30:39--
Resolving,,, ...
Connecting to||:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 302 Found
  Cache-Control: private
  Content-Type: text/html; charset=UTF-8
  Date: Tue, 16 Aug 2011 20:32:01 GMT
  Server: gws
  Content-Length: 218
  X-XSS-Protection: 1; mode=block
  Connection: Keep-Alive

In summary - you need to look at IIS.

share|improve this answer
but in my case a redirection occurs to default.aspx and redirection code is 302 – umitcel Aug 16 '11 at 20:47
Yes I know, your IIS web server is creating the redirect. There is never a document actually at - there's always a filename needed, in some cases it's a redirect to the default index page (index.html for example) achieved via a 302. This is normal - so what is the exact problem you are trying to fix. Browsers will follow the 302 redirect and get the default.aspx page. – EightBitTony Aug 16 '11 at 20:56
i want to url stay what it is typed as,, occurs on address bar – umitcel Aug 16 '11 at 21:01
Then you need to look at your IIS config, it's nothing to do with DNS. – EightBitTony Aug 16 '11 at 21:03
i have used some redirection methods to site root that casuing infinite loops – umitcel Aug 16 '11 at 21:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.