Raspi Zero hardly reachable with the hostname
Posted: 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
nano /etc/hosts
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
But this line still exists.
What can i do to resolve this problem?
Thanks! Bismosa
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
camCode: 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
And many times rebooted.
I have found in a other Forum a solution:
nano /etc/ssh/sshd_config
Code: Select all
UseDNS=noWhat can i do to resolve this problem?
Thanks! Bismosa