[avahi] Is it possible to have multiple names for a host
alan at chandlerfamily.org.uk
Wed Apr 15 10:12:38 PDT 2009
On Tuesday 14 April 2009, Alan Chandler wrote:
> On Monday 13 April 2009, Alan Chandler wrote:
> > Is it possible therefore, for each machine to define for itself
> > several names to be resolved within the .local domain? If so how.
> I tried several experiments with both the
> /etc/avahi/avahi-daemon.conf file (using multiple host-name= lines)
> and the /etc/avahi/hosts file, and I can't seem to allocate more than
> one name to a single ip address. The hosts file doesn't support
> aliases (despite the man page saying it is similar to the /etc/hosts
> file) nor repeating the ip address on multiple lines and adding just
> one name per line
> Any other ideas?
I went back through the archives and eventually found this.
On Mon, 05.11.07 14:57, Bluejack (bluejack at bluejack.com) wrote:
> I would have thought this would be a common enough question for the
> faq, but I can't even find reference to it in the mailing list
> archives. I'm probably searching wrong. Anyway, perhaps someone could
> help me.
> How do I publish an alias to a certain machine?
> Ie., I have 'foo.local' which also needs to be known as 'bar.local'
> Can avahi do this?
Yes, you can register whatever RR makes you happy. Just write a small
Avahi client and register an additionaö A or CNAME RR for your
machine. It's not black magic.
I am still not sure I've got enough knowledge to write an avahi client,
but I will continue pursuing this. Could someone just point me in the
right direction to get started.
I actually would like to do something fractionally different. On
machine foo.local, I would like to create aliases of www.foo.local and
ww2.foo.local and have anyone in my local network see them. I presume
that extra dot in the name won't scupper things?
More information about the avahi