3

Is it possible to let Avahi announce another hostname for the same machine?

I know it is meant to announce 'services', but usual clients like eg. browsers lack Avahi service support and rely on name resolution. Thus I would like to mark certain services by host names like my_fileserver.local, my_tools.local and so on. I may move around certain services on my machines then, and have the browser accessing the right machine for some service.

dronus
  • 1,128
  • 1
  • 13
  • 15

1 Answers1

2

This stackoverflow question sounds like what you're looking for.

Sounds like a kluge to me. I would either setup DNS internally, or if you have a router/switch, make use of it's ability to perform DNS for your internal lan.

Good DNS Server howto to start with.

slm
  • 7,355
  • 16
  • 54
  • 72
  • But as far as I understand DNS always works in a centralised fashion, one or more DNS servers assigning names to the IP adresses. With DHCP, those are not always fixed so it would need to assign names to MAC addresses I think. With Avahi/Zeroconf, the machines are able to carry their names by themselves. – dronus Apr 13 '13 at 09:59
  • DHCP & DNS can be configured so that they work together. When the DHCP server hands out new IPs it can automatically update the DNS server with this new information. This [tutorial](http://www.debianadmin.com/howto-setup-dhcp-server-and-dynamic-dns-with-bind-in-debian.html) shows how to do dynamic dns (i.e. DHCP server updates DNS). – slm Apr 13 '13 at 12:11