ubuntu – 可能通过dnsmasq对主机名(不是IP别名)进行DNS查找别名

前端之家收集整理的这篇文章主要介绍了ubuntu – 可能通过dnsmasq对主机名(不是IP别名)进行DNS查找别名前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我希望能够设置一个主机,比如“eg”,成为互联网上某个服务器的别名,比如说“example.example.com”.

我只需要从我的本地机器上获得此功能.我正在运行ubuntu 9.10的那台机器上运行dnsmasq.

有没有办法配置dnsmasq或解析器子系统(包括avahi)通过实际主机名解析该别名主机名,以便例如将解析为example.example.com的IP地址?

dnsmasq联机帮助页说:

--cname=<cname>,<target>

Return a CNAME record which indicates that <cname> is really
<target>. There are significant
limitations on the target; it must be
a DNS name which is known to dnsmasq
from /etc/hosts (or additional hosts
files) or from DHCP. If the target
does not satisfy this criteria,the
whole cname is ignored. The cname must
be unique,but it is permissable to
have more than one cname pointing to
the same target.

我认为“已知目标”标准将使其不适合您的要求.

我知道Unbound确实支持这个功能.

原文链接:https://www.f2er.com/ubuntu/347996.html

猜你在找的Ubuntu相关文章