gethostby* users

Ulrich Drepper drepper at redhat.com
Sun Oct 14 16:56:03 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simo Sorce wrote:
> Now if you reorder these addresses what happen is that the main site A
> clients will always try to contact the branch office servers instead, as
> they have 'site-local' ones.

Why would we reorder?  This is not a given.  First, if the local network
addresses have a longer matching prefix it is automatically preferred.
Second, even if somebody is in the situation where somebody bad a bad
decision that this is not the case (e.g., always remember a machine can
have more than one IP address) you can overwrite the default preferences
getaddrinfo uses for sorting using /etc/gai.conf.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHEkoj2ijCOnn/RHQRArTbAJ0RKAKykT5dvBOwZXXtP7xkV+69HQCgt1bd
yHN+OB2pGt1+8mZ3puyKJQk=
=euZA
-----END PGP SIGNATURE-----




More information about the fedora-devel-list mailing list