The company's website can be accessed through the domain name, but it cannot be accessed by entering the domain name. I saw many people saying that it might be a DNS problem. I don't have DNS installed on my server. Is there any impact? If I want to install it, how should I configure it? I'm a newbie and I'd like some advice from an expert, thank you.
与你服务器是否安装DNS无关。
首先,你可以先ping一下,看看域名是否解析到了相同的IP地址。
现在情况应当是否定的。那么找到你的域名提供商,也就是你的域名是从哪里买的,一般他们会提供域名解析的管理服务。
域名解析的是带 www 还是不带 www?
虽然大部分网站都使用 www 前缀,但实际上这是一个二级域名。如果想要两种方式都能访问,就需要两条解析记录。