如何在 freenom.com 创建子域? [英] How to create a subdomain at freenom.com?

查看:30
本文介绍了如何在 freenom.com 创建子域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 freenom.com 创建了一个域https://imgur.com/a/ClaXVLX它指向我在 Digital Ocean Droplet 的应用程序.第二天我创建了这个我测试过的域,它可以工作.该域是 1) 在上面的打印屏幕上.

I created a domain at freenom.com https://imgur.com/a/ClaXVLX which points to my app at Digital ocean droplet. and next day I created this domain I tested and it works. that domain is 1) at printscreen above.

现在我想创建几个子域,因为我知道这是可能的:

Now I want to create several subdomains, as I know that is possible to make:

site.com - domain
dev1.site.com, dev2.site.com - subdomains

但我不知道在字段 2) 和 3) 中必须输入什么?

But I do not know what must be entered in fields 2) and 3) ?

当我在上面的打印屏幕上尝试时出现错误:

When I tried as at printscreen above I got error :

Error occured: Invalid value in dnsrecord

哪些是有效值?

谢谢!

推荐答案

域名(用作网站等)应该指向一个 IP 地址.有多种 DNS 记录.指向 IP 地址的记录是 A 记录,就像在 1) 中一样.其他种类是邮件服务器的 MX 记录,例如.

A domain name (for use as websites etc.) should point at an IP address. There are several kinds of DNS records. Records for pointing at IP addresses are A records, as you have in 1). Other kinds are MX records for mail servers, for example.

如果你想创建一个子域,你想创建另一个A记录,那么只需在类型"字段中选择A即可.

If you want to create a subdomain, you want to create another A record, so simply choose A for the "type" field.

或者,如果 IP 与现有记录相同,则使用指向另一条记录的 CNAME 记录,例如

Alternatively, if the IP is the same as an existing record, use a CNAME record which points to another record, e.g.

Name           Type    TTL    Target
dev1.site.com  CNAME   14440  site.com

这表示 dev1.site.com 应该使用与 site.com 相同的记录,因此如果您更新了 site.com 的 A 记录,它也会自动应用于所有子域.

This says that dev1.site.com should use the same record(s) as site.com, so if you ever update the A record of site.com, it will automatically apply to all subdomains too.

这篇关于如何在 freenom.com 创建子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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