服务器A做DNS服务器:
使用dnsmasq做dns'服务器,配置文件位置:/etc/dnsmasq.conf
服务器B设置DNS服务器为A:
/etc/resolv.conf 设置 nameserver xx.xx.xx.xx(A服务器的ip)