我只需要从我的本地机器上获得此功能.我正在运行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确实支持这个功能.
精彩评论