bismosa
Posts: 42
Joined: Sun Dec 23, 2012 11:43 am

Raspi Zero hardly reachable with the hostname

Tue Jun 06, 2017 7:06 pm

Hello,

I'm just trying to set up my new Raspberry Zero.
I have changed the hostname but it takes over 20 seconds to get the user prompt in ssh. I have also installed an Apache Web Server. Here is the same problem. It takes over 20 seconds to get the start page.
If i use the IP- Address from the raspi the login prompt (or the start page) comes immediately.

I have also 2 other Raspberrys with different hostnames (but not updated over one Year). I can easily reach this via the hostname.

I have used the Raspian Jessie Lite Image (Version:April 2017 Release date:2017-04-10 Kernel version:4.4). I have changed the Hostname via raspi-config. Also i have
nano /etc/hostname

Code: Select all

cam
nano /etc/hosts

Code: Select all

127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       cam
I have also executed: sudo /etc/init.d/hostname.sh

And many times rebooted.

I have found in a other Forum a solution:
nano /etc/ssh/sshd_config

Code: Select all

UseDNS=no
But this line still exists.

What can i do to resolve this problem?

Thanks! Bismosa

bismosa
Posts: 42
Joined: Sun Dec 23, 2012 11:43 am

Re: Raspi Zero hardly reachable with the hostname

Wed Jun 07, 2017 4:30 pm

Hello,

i have now installed the Raspian full Image. But the problem is the same.
If i use the hostname "cam" it takes more than 20 seconds.
If i use the hostname "campi" or any other name with more characters it will work immediately.
I cant find any restriction in the minimum length of a hostname.

It seems to be a bug?

Regards
Bismosa

bismosa
Posts: 42
Joined: Sun Dec 23, 2012 11:43 am

Re: Raspi Zero hardly reachable with the hostname

Wed Jun 07, 2017 5:34 pm

Ok. Now i found the solution.
I have found this article (in German)
https://marcowue.wordpress.com/2012/07/ ... alsch-auf/
I have changed the DHCP IP-Range and now it works with "cam".

So it is a Bug in the FritzBox...

Regards
Bismosa

Return to “Troubleshooting”