LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Problem with two boxes LVS

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Problem with two boxes LVS
From: Dirk Umlauffd <Dirk.Umlauffd@xxxxxxxx>
Date: Mon, 25 Sep 2006 10:22:15 +0200
Hello,

I've set up an LVS for a redundant DNS service on two redhat boxes:
VIP: 10.0.0.20
RIP's: .21 and .22 on the same network as the VIP.
Everything works fine, exept if the named on the "master" (.20) fails, then I 
recieve the answers from 10.0.0.22 instead of 10.0.0.20. And the clients 
don't like this response:
";; reply from unexpected source: 10.0.0.22#53, expected 10.0.0.20#53"
Is there a sollution to fix this?
Should the replys be mangled by for example iptables?


here my ldirector.cf:

# Virtual Server for DNS
virtual=10.0.0.20:53
        #fallback=127.0.0.1:80
        real=10.0.0.21:53 masq 1000
        real=10.0.0.22:53 masq 1
        service=dns
        request="dns_eip2_m.example.com"
        receive="10.0.0.21"
        scheduler=wrr
        #persistent=600
        protocol=udp
        checktype=negotiate
# Virtual Server for DNS
virtual=10.0.0.20:53
        #fallback=127.0.0.1:80
        real=10.0.0.21:53 masq 1000
        real=10.0.0.22:53 masq 1
        service=dns
        request="dns_eip2_m.example.com"
        receive="10.0.0.21"
        scheduler=wrr
        #persistent=600
        protocol=tcp
        checktype=negotiate

-- 
Mit freundlichen Gruessen, regards

Dirk Umlauffd

------------------------------------------------------------
DT Netsolution GmbH -  Talaeckerstr. 30 -  D-70437 Stuttgart
Tel: +49-711-849910-36               Fax: +49-711-849910-936
WEB: http://www.dtnet.de/      email: dirk.umlauffd@xxxxxxxx    

<Prev in Thread] Current Thread [Next in Thread>