Answers to: avahi .local hostname with -2http://linuxexchange.org/questions/810/avahi-local-hostname-with-2<p>I use avahi a lot, and hostnames in .local a lot.</p> <p>Sometimes, I find that the public hostname is not the local hostname of my computer. Say that my hostname is <code>meryl</code>, I find that on the local network it is called <code>meryl-2.local</code> instead of <code>meryl.local</code></p> <p>That might be caused by the fact that sometimes the laptop is connected to the network both by wifi and ethernet (wifi is too slow for data transfer). So because there was a conflict in names, it renamed the local host.</p> <p>Now, when I have only one connexion active, I'd like my hostname to be <code>meryl.local</code></p> <p>Do you know how to do that?</p> <p>Thanks.</p>enWed, 09 Jun 2010 13:40:26 -0400Answer by mildredhttp://linuxexchange.org/questions/810/avahi-local-hostname-with-2/811<p>I found a tempoary solution:</p> <pre><code>hostname meryl service avahi-daemon restart </code></pre> <p>And the hostname is back to normal</p>mildredWed, 09 Jun 2010 13:40:26 -0400http://linuxexchange.org/questions/810/avahi-local-hostname-with-2/811