Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
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 9: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 shows how to do dynamic dns (i.e. DHCP server updates DNS). – slm Apr 13 '13 at 12:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.