我希望能够设置一个主机,比如“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确实支持这个功能.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。