LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Ldirectord and DNS problem using TCP and UDP

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ldirectord and DNS problem using TCP and UDP
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 18 Oct 2005 12:37:23 +0900
On Mon, Oct 17, 2005 at 11:50:57AM -0700, Todd Lyons wrote:
> David Craigon wanted us to know:
> 
> >Hi there,
> >     I'm trying to configure a DNS recursive resolver (cache)
> >cluster. I am attempting to use ldirectord to detect realserver failure.
> >
> >Now, in my configuration file I want to do something like this:
> >     service=dns
> >     protocol=udp
> ...
> >     service=dns
> >     protocol=tcp
> >since DNS uses both UDP and TCP. Unfortunately ldirectord doesn't like
> >this config- it gets confused and thinks there is a duplicate config in
> >the file saying "duplicate virtual server". But the service is on UDP
> >and TCP, so they are different. Any advice? Is this a bug?
> 
> Yes.  ldirectord needs to be adjusted to check for tcp/udp specification
> and set it.  The Net::DNS::Resolver has an function usevc(int) that
> tells it to use TCP instead of UDP.  You could probably add the code if
> you knew which hash it was in.  Something like $$r{"protocol"}, but that
> is 100% guess on my part.

I see the problem. Basically the way that the virtual is recorded
doesn't take into account udp vs tcp. I'll come up with a patch and post
it shortly.

-- 
Horms

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