无法访问我的主域名(“无法解析主机”)

无法访问我的主域名(“无法解析主机”)

我有一个域名(bydorian.com),今天我尝试删除www开头的。

但是现在子域名(www.bydorian.com)可以工作,但主域名(bydorian.com)却不行。

卷曲响应是:curl: (6) Couldn't resolve host 'bydorian.com'

这是我的区域文件的重要部分:

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

我的虚拟主机:

<VirtualHost *:80>
        ServerName bydorian.com
        DocumentRoot /var/www/www

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

        ProxyRequests Off
        <Proxy *>
                Order allow,deny
                Allow from all
        </Proxy>
        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>

<VirtualHost *:80>
        DocumentRoot /var/www/dev
        ServerName dev.bydorian.com
</VirtualHost>

答案1

你需要一个简单的

 IN A 46.105.178.101

线也是如此,因为

 * IN A 46.105.178.101

仅匹配子域名。

相关内容