域是将浏览器定向到正确的 Web 服务器以接收网页内容的URL的主要部分。
那么什么是“自定义”域?如果您购买了可以自己定义的域名,则称为自定义域。与此相反的可能是您从WordPress.com(WordPress.com)或Blogger.com等服务收到的域。
(Online)为您提供域名的在线发布服务通常会在其父域下为您提供一个“子域”。例如,WordPress.com为您提供了一个URL 为“(URL “) yoursite.home.blog”的博客。
在这种情况下,home.blog 是父域,“yoursite”是您的子域。
如何设置自定义域
在您可以配置一个域名指向您的网站之前,您需要购买一个。
购买自己的自定义域最便宜的方法是找到一个尚未使用的域。您可以购买自定义域名的所有域名注册商都为您提供了搜索功能。
您可以在其中搜索和购买域名的最受欢迎和知名的域名注册商包括:
您通常也可以从您的网络托管服务提供商处购买自定义域,因此这可能是一个很好的首选检查位置。
预计每年为可用域名支付约 9.99 至 24.99 美元。如果您不希望人们从ICANN或Whois Lookup等服务中查找域所有权,您可以购买所谓的Ownership Protection或Domain Privacy。
只需支付少量年费(通常从 2.99 美元到 7.99 美元),您就可以放心,因为您知道垃圾邮件发送者或其他人无法获取您的电子邮件地址或电话号码。
如何配置新的自定义域(New Custom Domain)
一旦您购买了自己的自定义域,您仍然需要将其指向托管您的实际网站的 Web 服务器。
为此,请登录您购买域的帐户并找到该域的管理 DNS(Manage DNS)设置。这将带您到一个区域,您可以在其中更改您的域的“自定义名称服务器”。
域名服务器是服务器(通常由您的网络托管公司提供),只要有人在他们的网络浏览器中键入您的自定义域,域名注册商就会将网络浏览器引用到该服务器。
网络主机的名称服务器处理将流量重定向到托管您网站(hosts your website)的正确服务器。您如何为您的虚拟主机找到正确的名称服务器?您可以通过登录您的网络托管帐户并导航到提供“站点信息”的管理面板来找到它们。
只需查找 IP 和名称服务器(Name Servers)部分,您应该会看到您的网络主机的两个名称服务器的名称。
记下这两个名称服务器,然后返回您的域注册商帐户并将它们输入到您域的自定义名称服务器的字段中。
只需保存(Save)更改,您就完成了。
名称服务器更改通常不会立即生效。事实上,更改可能需要长达 24 小时才能在 Internet 上传播。您可以使用whatsmydns.net之类的服务来检查您的域的 IP 地址和DNS记录信息是否已在 Internet 上传播。
完成此过程后,只要有人在浏览器的URL字段中键入您的新自定义域,浏览器就会被定向到托管您网站的 Web 服务器。
如何以及为什么重定向自定义域(Custom Domain)
重定向域意味着告诉您将该域指向的网络主机,将该自定义域的传入流量重定向到另一个。您可能需要重定向自定义域的重要原因。
这样做的最常见原因是,如果您想注册域名的稍微替代的拼写,以便您可以将它们全部指向您的主域。这可以帮助您重新获得由于拼写错误而可能丢失的流量。
例如,如果您在 Web 浏览器的URL字段中输入“googel.com”,您会注意到该URL会自动更改为“google.com”,并将您带到Google的搜索引擎。这是因为谷歌(Google)将“googel.com”重定向到“google.com”。
为此,请使用替代拼写注册自定义域,然后按照上述相同步骤使用正确的名称服务器将该自定义域指向您的 Web 服务器。
然后,登录到您的网络托管帐户并找到Redirects的菜单选项。
您将看到一个窗口,您可以在其中选择您注册的原始(通常拼写错误)自定义域。然后在重定向到(Redirects to)字段中,您可以指定您希望网络主机将该自定义域的流量重定向到哪个URL 。
请记住,您可以输入任何URL,即使您不拥有它。例如,您可以根据需要将自定义域重定向到“google.com”。它没有多大意义,但这就是重定向的工作方式。
您不会直接重定向到您的网站文件所在的 Web 服务器位置。相反,您将传入的访问者发送到URL,然后最终将他们传送到 Web 主机位置。
自定义域的其他用途
注册和重定向自定义域的另一个有用的好处是,您还可以创建包含该自定义域的自己的电子邮件地址。(your own email address)
例如,如果您使用您自己的名字为个人资料网站(a profile website)创建一个自定义域,那么您可以使用您自己的名字创建一个电子邮件地址。要设置此类电子邮件,您首先需要使用上述步骤将自定义域重定向到您的网络主机。
然后,登录您的网络主机帐户并在电子邮件菜单中选择(Email)帐户(Accounts)(菜单本身可能略有不同)。
在这里,您可以创建任何您喜欢的电子邮件帐户。例如,使用我的注册域名 ryandube.com,我可以创建电子邮件帐户[email protected]。
自定义域名可让您使用自己的电子邮件结尾域创建自己的电子邮件帐户。对于许多人来说,注册自定义域就足够了,即使他们没有将其重定向到的网站。
无论您注册自定义域的原因是什么,您都可以看到它很容易做到并且很有用。
What Is a Custom Domain and How to Set One Up
A domаin is the primary part of a URL that directs the browser to the right web server in оrder to receive the web page content.
So what’s a “custom” domain? If you purchase a domain name that you can define yourself, that’s called a custom domain. The opposite of this might be a domain you receive from a service like WordPress.com or Blogger.com.
Online publishing services that provide you with a domain name typically provide you with a “subdomain” underneath their own parent domain. For example, WordPress.com gives you a blog with the URL “yoursite.home.blog”.
In this case, home.blog is the parent domain, and “yoursite” is your subdomain.
How to Set Up a Custom Domain
Before you can configure a domain name to point to your website, you need to buy one.
The cheapest way to buy your own custom domain is to find one that isn’t taken yet. All domain registrars where you can buy a custom domain name provide a search feature for you to do this.
The most popular and well-known domain registrars where you can search for and purchase a domain name include:
You can also usually purchase a custom domain from your web hosting provider as well, so that may be a good first place to check.
Expect to pay about $9.99 to $24.99 per year for an available domain name. If you don’t want people looking up domain ownership from a service like ICANN or Whois Lookup, you can purchase what’s known as Ownership Protection or Domain Privacy.
This is available for a small annual fee (usually from $2.99 to $7.99), and provides you peace of mind knowing that spammers or others won’t be able to obtain your email address or phone number.
How to Configure Your New Custom Domain
Once you’ve purchased your own custom domain, you still need to point it to the web server where your actual website is hosted.
To do this, log into the account where you purchased your domain and find the Manage DNS settings for that domain. This will take you to an area where you can change the “custom nameservers” for your domain.
Nameservers are the servers (typically provided by your web hosting company) that the domain registrar will refer web browsers to whenever anyone types your custom domain into their web browser.
The web host’s name servers handle redirecting traffic to the correct server that hosts your website. How do you find the correct name servers for your web host? You can find them by logging into your web hosting account and navigating to your admin panel where “Site Information” is provided.
Just look for the IP and Name Servers section and you should see the names of your web host’s two name servers.
Make a note of these two name servers, then return to your domain registrar account and type those into the fields for your domain’s custom nameservers.
Just Save the changes, and you’re done.
Name server changes don’t usually take effect immediately. In fact, it can take up to 24 hours before the changes propagate across the internet. You can use a service like whatsmydns.net to check whether your domain’s IP address and DNS record information has propagated across the internet.
Once this process is done, any time anyone types your new custom domain into their browser’s URL field, the browser will be directed to your web server where your website is hosted.
How and Why to Redirect a Custom Domain
Redirecting a domain means telling the web host you’ve pointed the domain to, to redirect incoming traffic for that custom domain to a different one. There are important reasons you may want to redirect a custom domain.
The most common reason for doing this is if you want to register slightly alternative spellings of your domain name so you can point them all to your main domain. This can help you recapture potentially lost traffic due to misspellings.
For example, if you type “googel.com” into your web browser’s URL field, you’ll notice that the URL automatically changes to “google.com” and takes you to Google’s search engine. This is because Google redirects “googel.com” to “google.com”.
To do this, register the custom domain with the alternative spellings, and follow the same steps above to point that custom domain to your web server using the correct name servers.
Then, log into your web hosting account and find the menu option for Redirects.
You’ll see a window where you can select the original (typically misspelled) custom domain you registered. Then in the Redirects to field, you can specify what URL you want the web host to redirect that custom domain’s traffic to.
Keep in mind that you can type any URL at all, even if you don’t own it. For example, you could redirect your custom domain to “google.com” if you wanted to. There wouldn’t be much sense to it, but this is how redirects work.
You’re not redirecting directly to the web server location where your website files are. Instead, you’re sending incoming visitors to the URL, which will then deliver them ultimately to the web host location.
Other Uses for a Custom Domain
Another useful benefit of registering and redirecting a custom domain is that you can also create your own email address that contains that custom domain.
For example, if you create a custom domain for a profile website using a domain with your own name, you can then create an email address with your own name. To set up such an email, you first need to redirect the custom domain to your web host using the steps above.
Then, log into your web host account and select Accounts in the Email menu (the menu itself might be slightly different).
Here you can create any email account you like. For example, with my registered domain name of ryandube.com, I can create the email account, [email protected].
A custom domain name lets you create your own email accounts using your own domain ending to the email. For many people, this is enough benefit to register a custom domain, even if they don’t host a website to redirect it to.
Whatever your reason for registering a custom domain, as you can see it’s easy to do and useful to have.