简体   繁体   English

将域指向专用服务器并配置DNS

[英]point domain to dedicated server and configure DNS

For various reasons, I have had to move from my managed hosting to a dedicated server setup. 由于各种原因,我不得不从托管主机转移到专用服务器设置。 The dedicated server now runs Debian 7.0 and I have installed and secured the server using basic tools such as fail2ban and iptables. 专用服务器现在运行Debian 7.0,我已经使用基本工具(例如fail2ban和iptables)安装并保护了服务器。

I do not want to run any mailservers, and would simply like to serve webapps on this machine. 我不想运行任何邮件服务器,只想在此计算机上提供webapp。 However, I do not seem to know/understand how to point my domain (from namecheap) to this machine and configure DNS records (if this is required). 但是,我似乎不知道/不知道如何将我的域(从namecheap)指向这台机器并配置DNS记录(如果需要)。 I am normally use Nginx as my production server. 我通常使用Nginx作为生产服务器。

I would really appreciate if someone could point me to some good tutorials/handouts which explain how to point my name to my dedicated machine and set up DNS - I did try google, but havent found any reliable instructions. 如果有人能指出一些好的教程/讲义,我将不胜感激,这些讲解/讲义解释了如何将我的名字指向我的专用计算机并设置DNS-我确实尝试了google,但没有找到任何可靠的说明。

I do not want instructions for plesk/cpanel/webmin - I would like to learn by editing and configuring files. 我不需要有关plesk / cpanel / webmin的说明-我想通过编辑和配置文件来学习。

You should log-in to your namecheap and get the 2 nameserver of your hosting provider to update or to point your nameservers to your hosting. 您应该登录到您的namecheap,并获取托管服务提供商的2名域名服务器来更新或将您的域名服务器指向托管服务器。 And check your host record on your dns config then try to make TTL to 1hr. 并检查您的dns配置上的主机记录,然后尝试将TTL设置为1小时。 So if you try to ping your domain it should be your hosting provider IP not your domain registrant. 因此,如果您尝试ping您的域,则它应该是您的托管服务提供商IP,而不是您的域注册人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM