LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: question about using lvs to build the DNS cluster

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: question about using lvs to build the DNS cluster
From: tao cui <taocuibj@xxxxxxxxxxxx>
Date: Wed, 5 Nov 2003 19:55:55 +0800 (CST)
if the primary dns of client is the configured DNS server's ip directly,it can 
resolve the domain name request,but if i use the director to forward the domain 
name request by the scripts :
 
/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

it can't work.
why?
Horms <horms@xxxxxxxxxxxx> wrote:
On Wed, Nov 05, 2003 at 04:25:19PM +0800, tao cui wrote:
> 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.

I am sorry but I don't quite understand the question.
But as you are using LVS-DR any DNS problems are almost
certainly not related to LVS. Just set up your /etc/resolv.conf
as you would on any machine, make sure that the machines can
send packets to the DNS servers listed and it should work.

-- 
Horms -> No Email. No Life.
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
__________________________________________________
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>