Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Google accesses my site via my DNS reverse records e.g. instead of using the domain

In Google Webmaster tools I get DNS issues - could it be that allowing Google to access a site via reverse records is not the best thing? How can I redirect direct accesses via reverse records to the actual domain?

share|improve this question
I'm pretty sure that you can redirect these accesses via httpd.conf, but I have no clue how and the documentation on this issue is small – mashup Sep 16 '11 at 20:27
I don't suppose it's as easy as getting your reverse DNS to match your forward DNS? – Alo Sep 16 '11 at 20:47
up vote 3 down vote accepted

You can create a new name-based virtual host matching your reverse hostname and redirect it with 301 to the correct domain (e.g.

<VirtualHost *:80>
    DocumentRoot /var/www

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule (.*)$1 [R=301,L] 

This way Google bots will know that the real URL for the content is

share|improve this answer
Thanks, exactly what I was looking for – mashup Sep 16 '11 at 22:15

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.