LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

question about using lvs to build the DNS cluster

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: question about using lvs to build the DNS cluster
From: tao cui <taocuibj@xxxxxxxxxxxx>
Date: Wed, 5 Nov 2003 16:25:19 +0800 (CST)
hello :
    i am using the lvs to build dns cluster,use the DR,
 
Topology:

[client] (windows 2000 professional)
     |
{lan}
     |
[director](standard kernel 2.4.18 ipvs-1.0.9,ipvsadm-1.21)
     | eth0:1 192.168.1.1                                        |
     | eth0 192.168.1.9                                           |
     |                                                                    |
[Primary DNS Server ] (Window 2000 server)          [Other Server:Mail Web etc]
       192.168.1.11  vip 192.168.1.1 no arp
 
i want to use the dns to resolve the request from the client ,and the request 
forward by the director .such as client send the request(eg:rs1.lvs.com) to 
it's first DNS server(director),and the director forward the request to primary 
dns server. 
 
the scripts on the director is :
 
#!/bin/bash

cat /proc/sys/net/ipv4/ip_forward
echo "0" > /proc/sys/net/ipv4/ip_forward

echo "1" > /proc/sys/net/ipv4/conf/all/send_redirects
cat  /proc/sys/net/ipv4/conf/all/send_redirects
echo "1" > /proc/sys/net/ipv4/conf/default/send_redirects
cat  /proc/sys/net/ipv4/conf/default/send_redirects
echo "1" > /proc/sys/net/ipv4/conf/eth1/send_redirects
cat  /proc/sys/net/ipv4/conf/eth1/send_redirects

/sbin/ifconfig eth1:1 192.168.1.1 broadcast 192.168.1.1 netmask 255.255.255.255
/sbin/route add -host 192.168.1.1 dev eth1:1

 
#setup ipvsadm table

/sbin/ipvsadm -A -u 192.168.1.1:53 -s wrr
/sbin/ipvsadm -a -u 192.168.1.1:53 -r 192.168.1.11:53 -g -w 1

/sbin/ipvsadm -A -t 192.168.1.1:53 -s wrr
/sbin/ipvsadm -a -t 192.168.1.1:53 -r 192.168.1.11:53 -g -w 1

issue:

can't resolve the domain name(eg:rs1.lvs.com),and when i use ipvsadm, there is 
no connect in it.

why?

thanks a lot.




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
<Prev in Thread] Current Thread [Next in Thread>