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 ([email protected]) wrote: > Ahoy, > > 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? -- Alan Chandler http://www.chandlerfamily.org.uk _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
