问题描述
我需要通过在URL中键入sendy.ambee.app来访问我的Digitalocean服务器.如果我键入IP地址157.230.9.219,则可以正常工作.
但是,只要我键入sendy.ambee.app,它就无法工作.
当我在终端中 ping sendy.ambee.app
时,它会ping通正确的IP地址(157.230.9.219).当我在这里尝试时,也是一样
我应该更改名称服务器
吗?请注意,在我的ambee.app域上,我使用Google Workspace(因此我想保留主域的google服务器)
我还要在那里设置什么(在Google Domains DNS设置中)?这是我到目前为止所得到的:
我对那里的许多选择感到困惑
- 我应在
自定义资源记录
中添加A记录吗 - 或者我应该在
合成记录
中转发sendy.ambee.app→157.230.9.219 - 或者我应该在
已注册的主机
中设置sendy.ambee.app→157.230.9.219?
我在Digitalocean设置中需要设置什么具体内容吗?
------------↓更新(2020年12月15日)↓--------------------
问题似乎出在Google Domains提供商上,因为我试图对其进行测试,并为 sendy.ambeeapp.com-> 157.230.9.219
创建了A记录>,并且可以正常使用(尝试 http://sendy.tomasbaran.com
亲自查看).
另一件事是,因为我将Google Workspace托管在主域 ambee.app
中,所以我无法更改默认的Google NS服务器.
简而言之,您想从主机名( sendy)添加自定义地址映射(
)添加到您的域( A
)记录 ambee.app
)的IPv4地址( 157.230.9.219
).
您应该保留名称服务器的位置;必须进行此配置,以便Google可以管理您的域并解析您的记录.
最好保留默认的TTL,但是您可以减少这些值.另外,通过Google更新DNS记录后,您可以使用以下任一方法在Linux上检查解析器:
nslookup sendy.ambee.app 8.8.8.8nslookup sendy.ambee.app 8.8.4.4
将这些更新传送到Internet上的其他DNS解析可能要花一些时间(但通常不会很长).
目前尚不清楚如何将 sendy.ambee.app
解析为IPv4地址( 157.230.9.219
)而无需DNS记录.
不太可能出现Google Domain(即Google)的DNS问题.
I need to access my Digitalocean server by typing sendy.ambee.app in the URL. If I type the IP address 157.230.9.219, it works.
But as long as I type sendy.ambee.app, it does NOT work.
When I ping sendy.ambee.app
in terminal, it pings the correct IP address (157.230.9.219). Same thing when I try it here https://asm.saas.broadcom.com/en/ping.php
This is my Google domain's Name Space settings:
Shall I change Name servers
? Just note here, on my ambee.app domain I use Google Workspace (so I do want to keep google servers for the main domain)
What else shall I have set up in there (in Google Domains DNS settings)? This is what I got so far:
I'm confused about many options there
- shall I add A record in
Custom resource records
- or shall I forward sendy.ambee.app → 157.230.9.219 in
Synthetic records
- or shall I set sendy.ambee.app → 157.230.9.219 in
Registered hosts
?
Is there anything specific I need to set in Digitalocean settings?
------------ ↓ UPDATE (Dec 15, 2020) ↓ --------------------
It seems that the problem is with Google Domains provider since I tried to test it out a different provider that I have and I created an A record for sendy.ambeeapp.com ->157.230.9.219
and it works without any issue (try http://sendy.tomasbaran.com
to see for yourself).
Another thing is that I can't change the default Google NS servers, since I'm hosting Google Workspace on my main domain ambee.app
.
To answer, succinctly, you want to add a custom Address mapping (A
) record from the host name (sendy
) to the IPv4 address (157.230.9.219
) for your domain (ambee.app
).
You should leave the name servers as they are; this configuration is necessary so that Google can manage your domain and resolve your records.
It's good to leave the defaults TTL but you can reduce these. Alternatively, once you've updated your DNS records through Google, you can check the resolver on Linux using either of the following:
nslookup sendy.ambee.app 8.8.8.8
nslookup sendy.ambee.app 8.8.4.4
It may (!) take some time (but usually not very long) for these updates to be shipped to other DNS resolves on the Internet.
It's unclear how you're able to resolve sendy.ambee.app
to the IPv4 address (157.230.9.219
) without changing your DNS records.
It's unlikely Google Domain's (i.e. Google's) DNS is at issue.
这篇关于如何为digitalocean设置子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!