如何使用dnsmasq将子域指向其他本地服务器?

如何使用dnsmasq将子域指向其他本地服务器?,dns,webserver,dnsmasq,Dns,Webserver,Dnsmasq,我需要帮助将subdomain.example.com从本地服务器A指向本地服务器B。 我已作出以下声明: /服务器A上的etc/dnsmasq.conf local=/subdomain.example.com/ address=/subdomain.example.com/localipB addn-hosts=/etc/dnsmasq_static_hosts.conf expand-hosts domain=example.com localipB subdomain subdomai

我需要帮助将subdomain.example.com从本地服务器A指向本地服务器B。 我已作出以下声明:

/服务器A上的etc/dnsmasq.conf

local=/subdomain.example.com/
address=/subdomain.example.com/localipB
addn-hosts=/etc/dnsmasq_static_hosts.conf
expand-hosts
domain=example.com
localipB subdomain subdomain.example.com
localipB subdomain.example.com
/服务器A上的etc/dnsmasq_static_hosts.conf

local=/subdomain.example.com/
address=/subdomain.example.com/localipB
addn-hosts=/etc/dnsmasq_static_hosts.conf
expand-hosts
domain=example.com
localipB subdomain subdomain.example.com
localipB subdomain.example.com
/服务器A上的etc/主机

local=/subdomain.example.com/
address=/subdomain.example.com/localipB
addn-hosts=/etc/dnsmasq_static_hosts.conf
expand-hosts
domain=example.com
localipB subdomain subdomain.example.com
localipB subdomain.example.com
/服务器B上的etc/主机

127.0.0.1       localhost
127.0.0.1       subdomain.example.com
subdomain
/服务器B上的etc/hostname

127.0.0.1       localhost
127.0.0.1       subdomain.example.com
subdomain
非常感谢