blauvster
Posts: 2
Joined: Wed Jun 01, 2016 4:17 pm

Hostname Stuck on DEBIAN

Wed Jun 01, 2016 4:27 pm

I followed all instructions I could find to change the hostname on a Pi running Jessie.
It looks as if all is good on the Pi's side:
Image

But doing a "ping -a xxx.xxx.xxx.xxx" returns "DEBIAN" as the hostname:
Image

Any ideas?

dgordon42
Posts: 788
Joined: Tue Aug 13, 2013 6:55 pm
Location: Dublin, Ireland

Re: Hostname Stuck on DEBIAN

Thu Jun 02, 2016 3:24 pm

I believe that the Pi's hostname is stored in 2 files, '/etc/hostname' and '/etc/hosts'.
What have you got in these two files?

Dave.

cpc464
Posts: 239
Joined: Tue Jul 08, 2014 5:10 pm
Contact: Website

Re: Hostname Stuck on DEBIAN

Thu Jun 02, 2016 3:49 pm

The pi has been renamed correctly but your Windows machine still thinks it is called "DEBIAN". The Pis IP address is still being resolved to "DEBIAN" either by your Windows machine's local host file or (more likely) a naming service on your network, such as DHCP on your router. You could try waiting 24 hours, or maybe reboot the router, if there is one, or the Windows box.
Unix engineer since 1989

blauvster
Posts: 2
Joined: Wed Jun 01, 2016 4:17 pm

Re: Hostname Stuck on DEBIAN

Mon Jun 13, 2016 1:09 pm

cpc464 wrote:The pi has been renamed correctly but your Windows machine still thinks it is called "DEBIAN". The Pis IP address is still being resolved to "DEBIAN" either by your Windows machine's local host file or (more likely) a naming service on your network, such as DHCP on your router. You could try waiting 24 hours, or maybe reboot the router, if there is one, or the Windows box.
Thanks! You were correct, it is a network issue. The problem does not exist when directly connected to the Pi.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Hostname Stuck on DEBIAN

Mon Jun 13, 2016 1:19 pm

blauvster wrote:
cpc464 wrote:The pi has been renamed correctly but your Windows machine still thinks it is called "DEBIAN". The Pis IP address is still being resolved to "DEBIAN" either by your Windows machine's local host file or (more likely) a naming service on your network, such as DHCP on your router. You could try waiting 24 hours, or maybe reboot the router, if there is one, or the Windows box.
Thanks! You were correct, it is a network issue. The problem does not exist when directly connected to the Pi.
not network problem
windows problem
well more specially a windows network cache problem it will resolve itself
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Troubleshooting”