0

I need to ping and establish communication with an embedded device through its hostname. I'm using the latest buildroot and I enabled avahi and mDNS. The first problem is that my hostname at startup is always buildroot and the problem is how change my hostname through avahi library and apply immediately on the network. Can someone help me to configure my device?

Joel
  • 22,598
  • 6
  • 69
  • 93
F.Guerinoni
  • 277
  • 2
  • 12
  • Do you mean this https://linux.die.net/man/1/avahi-set-host-name ? – Ottavio Campana Oct 15 '19 at 08:46
  • Yes, I tried to use `hostname newname` and that command but I don't get any results... – F.Guerinoni Oct 16 '19 at 07:41
  • avahi-set-host-name and hostname are two different commands. – Ottavio Campana Oct 17 '19 at 14:55
  • ok, but what should I use? – F.Guerinoni Oct 17 '19 at 16:16
  • Any progress? I have same issue. My rpi0w connected to my wifi network and I can see it but without hostname, only realize new device connected and I say "hello little fellow you arrived yet" and see like 192.168.1.10 then I can connect **ssh root@192.168.1.10** But, when I use raspberry os, I always can see the hostname of rpi when search my network (you know, raspberrypi.local) It is bad, because when I use more than one RPI I could not recognize which is which, then try more than one time. – ati ince Dec 27 '20 at 11:37

0 Answers0