迁安做网站中的cms润强,php做调查问卷网站,小程序开发一般多少钱,单机网页制作工具域控dns无法解析域控by ᴋɪʀʙʏ ᴋᴏʜʟᴍᴏʀɢᴇɴ由ᴋɪʀʙʏᴋᴏʜʟᴍᴏʀɢᴇɴ 域名注册商#xff0c;DNS和托管 (Domain registrars, DNS, and hosting) 如何正确设置网站 (How to set up your website the right way) It took me a while to set up the infras…域控dns无法解析域控by ᴋɪʀʙʏ ᴋᴏʜʟᴍᴏʀɢᴇɴ 由ᴋɪʀʙʏᴋᴏʜʟᴍᴏʀɢᴇɴ 域名注册商DNS和托管 (Domain registrars, DNS, and hosting) 如何正确设置网站 (How to set up your website the right way) It took me a while to set up the infrastructure that runs my website and email in a way that made me happy. There are a lot of crappy domain registrars, DNS providers, and web hosts out there. I’m finally in a place where I’m pleased with each component in my pipeline, so I thought I’d share my setup with the world. 我花了一些时间来建立可以让我感到高兴的方式来运行我的网站和电子邮件的基础结构。 那里有很多糟糕的域名注册商DNS提供商和网络主机。 我终于到了一个令我满意的地方我想与世界分享我的设置。 便宜货 (Namecheap) Back in the day I, like many other people, used GoDaddy as my primary domain registrar. Quickly I learned that GoDaddy spends all of their money on fancy advertising instead of hiring UX engineers or product managers. Their support team was subpar as well during my time there. 过去我和其他许多人一样使用GoDaddy作为我的主要域名注册商。 很快我得知GoDaddy将所有的钱都花在了精美的广告上而不是雇用UX工程师或产品经理。 在我在那里期间他们的支持团队也表现不佳。 Nowadays, I only use Namecheap for my domain needs. Namecheap is by far the best interface I’ve found for managing domains and it gets better every time I use it. They also always have great deals on new TLDs and searching for a great domain on their site is always a fantastic experience. 如今我仅将Namecheap用于我的域需求。 到目前为止Namecheap是我发现的用于管理域的最佳界面并且每次使用它时都会变得更好。 他们在新TLD方面也总是有很多优惠并且在他们的网站上搜索出色的域名总是一种奇妙的体验。 CloudFlare (CloudFlare) Every domain registrar will provide you with the ability to configure your DNS settings for your domain, but no free nameserver service can really compare to CloudFlare. I don’t want to take too much time explaining all of the amazing things that CloudFlare can do for you because this video already does an incredible job. 每个域注册商都可以为您的域配置DNS设置但是没有免费的域名服务器服务可以与CloudFlare相比 。 我不想花太多时间解释CloudFlare可以为您做的所有令人惊奇的事情因为该视频已经完成了令人难以置信的工作。 If you watched that video, then you know about a lot of the awesome features that CloudFlare provides to its users for free. My absolutely favorite feature though, is surprisingly de-emphasized on CloudFlare’s site. The number one reason I use CloudFlare is because I never have to wait on DNS propagation. 如果您观看了该视频那么您将了解CloudFlare免费提供给用户的许多很棒的功能。 但是我绝对喜欢的功能在CloudFlare的网站上却被意外地忽略了。 我使用CloudFlare的第一个原因是因为我不必等待DNS传播 。 GitHub页面 (GitHub Pages) Hosting a website can also be quite a pain. If you just need to host a static website, then there is no reason you need to pay for hosting. My personal favorite solution is GitHub Pages. I already use git to manage my website, so GitHub Pages makes updating my website as easy as git push. No more FTP, SSH, or any other three letter acronyms. 托管网站也可能会很痛苦。 如果您只需要托管一个静态网站则没有理由需要为托管付费。 我个人最喜欢的解决方案是GitHub Pages 。 我已经使用git来管理我的网站所以GitHub Pages使更新我的网站像git push一样容易。 不再需要FTPSSH或任何其他三个字母的缩写。 设定 (Setting it up) By now you should have a good high-level overview of how to setup your website, but there can be small implementation details that still make connecting the dots difficult. Here are all the steps you need to follow in order to utilize the above services: 到现在为止您应该已经对如何设置网站有了一个很好的高级概述但是可能有一些小的实施细节仍然使连接各点变得困难。 要使用上述服务您需要遵循以下所有步骤 1.在Namecheap上获取您的域名。 (1. Get your domain on Namecheap.) It doesn’t matter if you buy it directly or transfer it, but get your domain on Namecheap. 您直接购买或转让它都没有关系但可以在Namecheap上获得您的域名。 2.将您的站点添加到CloudFlare。 (2. Add your site to CloudFlare.) On CloudFlare add your site, scan the current DNS records, and select the free plan. Once you’ve done that, you’ll be prompted with two nameserver addresses. Save these for the next step. 在CloudFlare上添加您的站点扫描当前的DNS记录然后选择免费计划。 完成此操作后系统将提示您两个名称服务器地址。 保存这些以进行下一步。 3.将Namecheap指向CloudFlare。 (3. Point Namecheap to CloudFlare.) Go back to Namecheap, click the “Manage” button corresponding to your domain from the main “Dashboard” page. Under the “Nameservers” section click “Namecheap Basic DNS”, and then select “Custom DNS.” From here, enter the two nameservers you got from CloudFlare and click the green checkmark. 返回Namecheap在“主页”主页上单击与您的域相对应的“管理”按钮。 在“名称服务器”部分下单击“ Namecheap基本DNS”然后选择“自定义DNS”。 在此处输入您从CloudFlare获得的两个名称服务器然后单击绿色的选中标记。 4.检查名称服务器。 (4. Check the nameservers.) Awesome, now go back to your site on CloudFlare and click “Recheck Nameservers.” This can take up to 24 hours, but often (especially with Namecheap) it only takes a few minutes. 太棒了现在回到CloudFlare上的站点然后单击“重新检查名称服务器”。 这最多可能需要24个小时但是通常(特别是使用Namecheap)只需几分钟。 5.设置GitHub Pages。 (5. Setup GitHub Pages.) Head over to GitHub and create a new repo called username.github.io, where username is your username on GitHub. From here you can push your static website up with the following commands: 转到GitHub并创建一个名为username .github.io的新存储库其中username是您在GitHub上的用户名。 在这里您可以使用以下命令来启动静态网站 # from your website directory on your local machine$ git init$ git add .$ git commit -m ‘Initial commit’# replace “remote-url” with the URL on your repo page on GitHub$ git remote add origin remote-url$ git push -u origin master 6.将您的DNS指向GitHub Pages。 (6. Point your DNS to GitHub Pages.) You can now go back to your site on CloudFlare and click “DNS” at the top. From here you’re going to want to add a CNAME record. The first value (name) will be “” and the second value (domain name) will be username.github.io, where username is your username on GitHub. 现在您可以返回到CloudFlare上的站点然后单击顶部的“ DNS”。 在这里您将要添加CNAME记录。 第一个值(名称)将为“ ”第二个值(域名)将为用户名 .github.io其中用户名是您在GitHub上的用户名。 Unless you have some subdomains or other special circumstances, you can delete any other CNAME or A records off of CloudFlare. Just to be safe though, I’d suggest you backup your DNS records by clicking, “Advanced” and “Export.” 除非您有某些子域或其他特殊情况否则可以从CloudFlare删除任何其他CNAME或A记录。 为了安全起见我建议您通过单击“高级”和“导出”来备份DNS记录。 I personally don’t like the “www” that prefixes a lot of domains. I get rid of this by adding another CNAME record with first value “www” and second value username.github.io, where username is your username on GitHub. 我个人不喜欢前缀很多域名的“ www”。 通过添加另一个具有第一个值“ www”和第二个值用户名 .github.io的CNAME记录我摆脱了这一点其中username是您在GitHub上的用户名。 7.在GitHub上添加一个CNAME文件。 (7. Add a CNAME file on GitHub.) The last step in this process is to tell GitHub Pages about our domain. We do this by adding a file called “CNAME” to the root directory of our website’s repository on GitHub. To do this run the following commands: 此过程的最后一步是告诉GitHub Pages有关我们的域的信息。 为此我们在GitHub上网站存储库的根目录中添加了一个名为“ CNAME”的文件。 为此请运行以下命令 # from your website directory on your local machine$ echo “my-domain” ; CNAME # where “my-domain;” is your domain$ git add CNAME$ git commit -m ‘Add CNAME’$ git push origin masterIf you found this post useful or if you have any recommendations feel free to post a response here. 如果您认为此帖子有用或者有任何建议请在此处发表回复。 Follow me on Twitter here. 按照我的Twitter 这里 。 翻译自: https://www.freecodecamp.org/news/domain-registrars-dns-and-hosting-353e4163a19/域控dns无法解析域控