Mailinglist Archive: opensuse (1420 mails)

< Previous Next >
Re: [opensuse] optimizing resolv.conf
John Andersen said the following on 01/03/2014 06:17 PM:
On 1/3/2014 3:05 PM, Christopher Myers wrote:
Actually, everyone gets both; the device picks which one to use, which is what allows it
to randomly balance or fail over to the other address if the one it picks isn't
responding. (Mind you, it's not perfect, since a 404 or 500 error is still
"responding," which is why a real load balancer is better.)

Are you sure?

Well *I* am sure.
As I said, look at GETHOSTBYNAME(3)

For instance, a PING alternated between 67 and 66 upon
each startup. (They all fail).
So it appears your system is handing out one address only, and switches between
the two.

No. It gets both when it calls GETHOSTBYNAME but has to choose one to use. Or rather one to use _first_.

I havent figured out the nslookup arguments that make exact same request as a
simple DNS request.

What do you man by that?
A application makes a 'simple' request using GETHOSTBYNAME(3)
Check the man page and you'll see that returns a *list* of addresses.
The application, even 'ping', has to pick one. If it fails - time-out or error - then try the next on the list. Or whatever algorithm the application chooses. 'nslookup' returns the same list.
What's the problem here?

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread