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.
|