章文嵩博士 帮我看看DNS LVS的问题!!谢谢!!

想搭建DNS LVS 现在问题是这样的 前端director显示的状态InActConn ESTABLISHED的状态 UDP的协议为什么会是这样呢 感觉DNS查询根本没有转发到后端 我查看DNS记录也只有director的检测记录

IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.1.1.57:53 rr
-> 10.1.1.59:53 Route 1 0 1
-> 10.1.1.60:53 Route 1 0 0

下面是我的keepalived的配置文件
! Configuration File for keepalived

global_defs {
router_id LVS_DEVEL
}

vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 99
nopreempt
priority 255
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.1.1.57
}
}

virtual_server 10.1.1.57 53 {
delay_loop 6
lb_algo rr
lb_kind DR
nat_mask 255.0.0.0
# persistence_timeout 50
protocol UDP

real_server 10.1.1.59 53 {
weight 1
MISC_CHECK {
misc_path "/usr/bin/dig NS @10.1.1.59 www.jjyy.com +time=1 +tries=5 +fail > /dev/null"
misc_timeout 6
}
}

real_server 10.1.1.60 53 {
weight 1
MISC_CHECK {
misc_path "/usr/bin/dig NS @10.1.1.60 www.jjyy.com +time=1 +tries=5 +fail > /dev/null"
misc_timeout 6
}
}

}

Forums:

主要是RealServer回复的时候用的还是本机的真实IP,所以应用上不认。

dig higkoo.org +trace -p80 @192.168.216.137
;; reply from unexpected source: 192.168.216.73#80, expected 192.168.216.137#80 http://t.qq.com/p/t/169744084539603

randomness