On Mon, 05.11.07 16:09, Jeff Koftinoff (jeffk jdkoftinoff.com) wrote:
> Is it possible to have avahi work on multiple ethernet
ports?
>
> I'd like to be able to have redundant physical
connections between a
> system and a switch - each ethernet port would have its
own zeroconf
> ip address, and avahi would respond on all ports with
the same
> name...
That's the default behaviour of Avahi.
> So someone doing a gethostbyname() would get multiple A
records for
> the same name, and be able to connect() to any of them.
If one
> connection goes down, a reconnect would go to one of
the other ip
> addresses.
If you do a gethostbyname() right now it's not deterministic
which A
you would get, but you'd get exactly one.
Please note however, that mDNS/DNS-SD is not a reliable
protocol. It's
not intended do be used for HA solutions.
Also, RRs take quite a time to timeout by default in Avahi.
So if you
just pull a cable it might take a while until Avahi removes
old
entries from its cache.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lenn
art/ GnuPG 0x1A015CC4
_______________________________________________
avahi mailing list
avahi lists.freedesktop.org
h
ttp://lists.freedesktop.org/mailman/listinfo/avahi
|