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

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

I have a domain ( and today I tried to remove the www at the beginning.

But now the sub-domain works ( but not the main domain (

The curl response is : curl: (6) Couldn't resolve host ''

Here is the important part of my zone file :

* 10800 IN A
dev 10800 IN A
www 10800 IN A

And my virtualhosts :

<VirtualHost *:80>
        DocumentRoot /var/www/www

        <Directory /var/www/www>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all

        ProxyRequests Off
        <Proxy *>
                Order allow,deny
                Allow from all
        ProxyPass /transmission http://localhost:9091/transmission
        ProxyPassReverse /transmission http://localhost:9091/transmission

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

<VirtualHost *:80>
        DocumentRoot /var/www/dev
share|improve this question
up vote 3 down vote accepted

You need a plain


line too, because

 * IN A

only maches to subdomains.

share|improve this answer
Like this : @ 10800 IN A – Dorian Jul 20 '12 at 9:33
Like this: 10800 IN A – Stone Jul 20 '12 at 9:48

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.