网站无法访问时,与QUOT; WWW"不使用 [英] Web site not accessible when "www" is not used

查看:218
本文介绍了网站无法访问时,与QUOT; WWW"不使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注册一个域名和虚拟主机空间。

I have a web domain registered and a hosting space.

当我进入我的网站 WWW (为前。 www.example.com ),它显示了预期的内容。然而,当我尝试访问它,而不 WWW (为前。 example.com ),这表明在建网页的网站。本网站正在建设中网页的网站托管服务提供商提供的是HTML文件。

When I access my website with www (for ex. www.example.com) it shows expected content. However when I try to access it without www (for ex. example.com) it shows site under construction page. This site under construction page is provided by web hosting provider and is html file.

需要什么样的变化来访问网站两种方式?

What changes are required for accessing site both ways?

推荐答案

创建 A记录 CNAME记录一般是解决方案 - 但你的权威DNS

Creating A record and CNAME record usually is the solution - but on your authoritative DNS.

您想要把A和/或CNAME记录到主DNS,没有辅助DNS。有两种方法来DNS它们是:

You will want to put A and/or CNAME records into master DNS, not secondary DNS. There are two approaches to DNS which are:


  1. 权威DNS(主DNS)

  2. 本地DNS(通常驻留在主机/路由器上)(辅助DNS)

事实上 - 这并不简单,因为它可能看起来。拥有自己的工作authoriative DNS,你需要physcially连接到两个不同分隔的IP地址2主机上(eth0的物理连接 - 几乎没有桥接)。由于这是非常复杂和耗时的FPGA实现,这是典型的外包主DNS到DNS提供商(和是在许多我们的一种常见的做法)。

Indeed - it is not simple as it may seemed. To have your own working authoriative DNS, you need 2 host machines physcially connected to two different separated ip addresses (eth0 physical connect - not virtually bridged). Since this is so complicated and time-consuming implemention, it is typical to outsource master DNS to a DNS provider (and is a common practice among many of us).

我有我的一个IP 4台服务器,而我的本地DNS正在我的路由器和主机4机之间管理并它只能在本地网络上大。因为我想在本地网络上被钩住我的域名,我外包我的主DNS到 http://dnsimple.com (还有其他的DNS提供商的竞争对手),因此它会直接管理我的域名。因此,这作为一个权威DNS,被称为主DNS。

I have 4 servers on my one ip, and my local DNS are being managed in between my router and 4 host machines and it works great on local network ONLY. Since I wanted the local network to be hooked to my domain, I outsourced my master DNS to http://dnsimple.com (there are other DNS provider competitors), so it'd manage my domain directly. This therefore functions as an authoritative DNS, known as master DNS.

您正试图解决这一问题,应重点向主DNS,没有辅助DNS(局域网),因为它会无法正常工作。如果你通过了一个注册公司或网络托管公司您的域名,你应该能够找到您的帐户设置/管理与公司(例如,C-面板)...不是你的本地网络上的DNS。

The issue you are trying to fix should be focused toward master DNS, not secondary DNS (local network) as it'd not work. If you got your domain via a registrar company or a web-hosting company, you should be able to find the setting/management on your account with the company (for example, C-Panel)...not DNS on your local network.

编辑:这是一个工具,我总是使用,是一个很大的好处应对下DNS /域名的问题。我不知道我会不会完成它。 http://www.dnsstuff.com/tool​​s

EDITED: This is a tool that I always use and is a great benefit in tackling down DNS / Domain issues. I dont know what I'd have done without it. http://www.dnsstuff.com/tools

这篇关于网站无法访问时,与QUOT; WWW"不使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆