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

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

问题描述

我在freenom.com上创建了一个域 https://imgur.com/a/ClaXVLX 指向我的应用程序在Digital ocean Drop上.第二天,我创建了我测试过的域,并且该域有效.该域是上面打印屏幕上的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地址的记录就是1)中的A记录.其他类型是例如邮件服务器的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天全站免登陆