Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

I use avahi a lot, and hostnames in .local a lot.

Sometimes, I find that the public hostname is not the local hostname of my computer. Say that my hostname is meryl, I find that on the local network it is called meryl-2.local instead of meryl.local

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.

Now, when I have only one connexion active, I'd like my hostname to be meryl.local

Do you know how to do that?

Thanks.

asked 09 Jun '10, 13:39

mildred's gravatar image

mildred
91124
accept rate: 66%




I found a tempoary solution:

hostname meryl
service avahi-daemon restart

And the hostname is back to normal

link

answered 09 Jun '10, 13:40

mildred's gravatar image

mildred
91124
accept rate: 66%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23

Asked: 09 Jun '10, 13:39

Seen: 16,722 times

Last updated: 07 Jul '10, 14:24

powered by OSQA