我希望能够设置一个主机,比如“eg”,成为互联网上某个服务器的别名,比如说“example.example.com”.
我只需要从我的本地机器上获得此功能.我正在运行ubuntu 9.10的那台机器上运行dnsmasq.
有没有办法配置dnsmasq或解析器子系统(包括avahi)通过实际主机名解析该别名主机名,以便例如将解析为example.example.com的IP地址?
dnsmasq联机帮助页说:
原文链接:https://www.f2er.com/ubuntu/347996.html
--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.
我认为“已知目标”标准将使其不适合您的要求.