无法让我的域工作。我应该怎么办?

Can't get my domain working. What should I do?

所以我们买了一个名为 mastergamingteam.eu 的域名,我们一直在努力让它工作,但似乎没有。我在网上试了很多东西,还是无法连接到页面。

客户端显示 DNS_PROBE_FINISHED_NXDOMAIN

我们使用ubuntu16.04.6

/etc/apache2/sites-available/000-default.conf:

<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName mastergamingteam.eu
ServerAlias www.mastergamingteam.eu
ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

/etc/hosts(这会不断被覆盖,这是默认存在的):

# Generated by SolusVM
127.0.0.1   localhost localhost.localdomain
::1 localhost localhost.localdomain
79.139.56.118   mastergamingteam

80端口由ufw启用并在apache2中监听

一条记录: mastergamingteam.eu priority:0 TTL:7200 Type:A Value:79.139.56.118

NS 记录: mastergamingteam.eu priority:0 TTL:86400 Type:NS Value:ns1.rackforest.hu

VPS 由 rackforest 托管,并在他们的网站上购买了域名。

这里的问题是:

您的域指向任何地方。您的域没有记录(没有 A 或 CNAME 或任何其他相关记录)也没有配置任何名称服务器。

确保设置记录,因为域显然不起作用。

您可以在此处自行查看您域的记录:https://digwebinterface.com/?hostnames=mastergamingteam.eu&type=&ns=resolver&useresolver=8.8.4.4&nameservers=

注册商的域记录在名称服务器的主机名中有错误。

$whois mastergamingteam.eu
Domain: mastergamingteam.eu
...
Registrar:
        Name: PDR Ltd.
        Website: https://www.publicdomainregistry.com

Name servers:
        sn1.rackforest.hu
        sns1.racforest.hu

您应该编辑记录注册器并将 ns1.rackforest.hu 作为第一个名称服务器。

此外,您的域只有一个 NS 记录。

 $ host -t ns  mastergamingteam.eu ns1.rackforest.hu
    Using domain server:
    Name: ns1.rackforest.hu
    Address: 185.43.204.2#53
    Aliases: 
    
    mastergamingteam.eu name server ns1.rackforest.hu

您可能应该将 ns2.rackforest.hu 作为第二个名称服务器。

ns2.rackforest.hu 了解您的域。

$host  mastergamingteam.eu ns2.rackforest.hu
Using domain server:
Name: ns2.rackforest.hu
Address: 79.172.213.19#53
Aliases: 

mastergamingteam.eu has address 79.139.56.118