需要帮助通过SSH设置我的dns区域

 收藏

你好

I want to have a server without any control panel(as they will install apache and other modules).I have install php and nginx successfully.However how to add my domain dns zone via ssh
Also by default nginx document root is /usr/share/nginx/html/ . I have no problem with that as i will host only 1 domain on my dedicated server.

Can anyone of you be generous enough to give me step by step instruction on how to add the domain dns zone and set document root to /usr/share/nginx/html/ so that when i go to http://mydomain.com/ , my site loads fine
My OS - Centos 6 Minimal
No Control Panel
SSH access available

在您的解释中使用这些 域名服务器 ns1.site.com ns2.site.com 服务器使用BIND 真心期待尽快解决 提前感谢一吨

回复
  • 奥特蛋o 回复

    问题出在DNS 固定:)

  • 洛可可 回复

    “ @记录”表示您未定义主域(您定义了子域,该子域可能是另一台计算机,因此您必须是特定的...)

    我通常在没有www的情况下创下A记录。 然后为www,邮件,ftp或其他内容制作CNAME记录。 (CNAME基本上是您的A记录的注册别名)。记录有助于将域拆分到多台计算机上。

    您可能想使用命令“ dig”来查找“ yourdomain.com”和“ www.yourdomain.com”,并确保它们都解析为您的IP。

    如果它们都可以解决,则您的问题可能不是DNS,而是nginx。

  • 霸占灵魂% 回复

    uPDATE:
    www version of site loads fine but non www version don't load @ all
    You have forgotten to create a A record for @
    This is the answer i got from serverfault(site is in read only now due to maintenance)
    What he mean by add a A record for @ can anyone give me a example
    Also what files shall i edit to add this A record
    Referance
    http://serverfault.com/questions/416564/non-www-version-of-site-not-loading