自定义主机名. (Linux服务器) [英] Custom hostnames. ( Linux Server)

查看:224
本文介绍了自定义主机名. (Linux服务器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我试图在我的Ubuntu 18.10服务器上创建自定义主机名,
我在面板上搜索,找不到.

因此,我在这里提出一些问题,如何更改服务器的主机名.
我要将主机名输入为:eur-mitigation.negromon.cf

http://prntscr.com/m3l7in

解决方案

您可以按照以下格式为每个虚拟机创建DNS名称,该格式可以公开访问.

<用户提供的名称> 如果您需要像问题中提到的那样自定义域,

您可以在Azure中配置Azure DNS区域. Dns区域名称将为" negromon.cf doc 用于创建.

然后您可以在DNS区域中使用 ".

一次创建一个DNS区域后,Azure将提供4个DNS服务器,其中包含区域信息.但是你不能解决那些 到处都是名字,

Azure托管DNS区域,但没有为您购买该域.

但是如果您将4个DNS服务器之一添加到您的解析文件中,它将起作用.

到使新域名对互联网上的每个人都有效,您需要联系您的域名提供商并委托 该域会蔚蓝.

请参考这个 文件进行授权.委托 概念在这里进行了解释.

尝试这样,如果您还有其他问题,请告诉我.


Hello,

I've trying to make custom hostnames on my Ubuntu 18.10 Server,
I search on the panel, dont find.

So, i'm here to make some asks, how i can change the hostname of my Server.
I want to put the hostname as: eur-mitigation.negromon.cf

http://prntscr.com/m3l7in

解决方案

Hi,

You can create a DNS name for each virtual machine in the below format which is publicly accessible.

<user-provided-name>.<azure-region>.cloudapp.azure.com.

If you need custom domain like you have mentioned in the question,

You can configure a Azure DNS Zone in azure. Dns zone name will be "negromon.cf". Refer to this doc for creation.

Then You can create a A record in that DNS Zone with "eur-mitigation".

Once a DNS zone is created, Azure provides 4 DNS servers where the Zone information exists. But you cant resolve those names everywhere,

because Azure hosts the DNS Zone but didnt buy that domain for you.

But if you add one of the 4 DNS servers to your resolve file, it will work.  

To make the new domain name work for everyone in the internet, You need to contact your domain name provider and delegate that domain to azure.

Please refer to this document for delegation. Delegation concept is explained here.

Try this out and let me know if you have more questions.


这篇关于自定义主机名. (Linux服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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