I'm new to BBB, and my linux experience is limited. But I kind of thought changing the /etc/hostname file would be all I would need to do to connect to it by name.
I set the hostname file to LorenzBBB1, but cant ping LorenzBBB1 from the windows PC (or ping the windowsPC by name from the BBB). But can by IP address. (the BBB can also ping google.com just fine).
From a Linux PC (unbuntu) I'm able to ping LorenzBBB1.local (but only with the .local). And the BBB can only connect to the linux with the name.local as well.
All the widnows PCs on the network can ping each other by hostname no problem.
For this I conclude the mDNS is working, but for some reason the DHCP server is not updating the DNS records for the BBB?
Results from ifconfig
eth0 Link encap:Ethernet HWaddr C8:A0:30:AD:EB:2F
inet addr:192.168.1.109 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::caa0:30ff:fead:eb2f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47334 errors:0 dropped:856 overruns:0 frame:0
TX packets:664 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5448097 (5.1 MiB) TX bytes:68006 (66.4 KiB)
Interrupt:56
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:204 errors:0 dropped:0 overruns:0 frame:0
TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16181 (15.8 KiB) TX bytes:16181 (15.8 KiB)
Results from journalctl | grep avahi
Oct 09 08:35:49 LorenzBBB1 avahi-daemon[124]: Server startup complete. Host name is LorenzBBB1.local. Local service cookie is 4096709841.
Oct 09 08:35:49 LorenzBBB1 avahi-daemon[124]: Service "LorenzBBB1" (/services/udisks.service) successfully established.
Oct 09 08:35:49 LorenzBBB1 avahi-daemon[124]: Service "LorenzBBB1" (/services/ssh.service) successfully established.
Oct 09 08:35:49 LorenzBBB1 avahi-daemon[124]: Service "LorenzBBB1" (/services/sftp-ssh.service) successfully established.
Oct 09 08:35:49 LorenzBBB1 avahi-daemon[124]: Service "Cloud9 IDE on LorenzBBB1" (/services/cloud9-avahi.service) successfully established.
Oct 09 08:35:53 LorenzBBB1 avahi-daemon[124]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.109.
Oct 09 08:35:53 LorenzBBB1 avahi-daemon[124]: New relevant interface eth0.IPv4 for mDNS.
Oct 09 08:35:53 LorenzBBB1 avahi-daemon[124]: Registering new address record for 192.168.1.109 on eth0.IPv4.
Oct 09 08:35:53 LorenzBBB1 avahi-daemon[124]: Registering new address record for fe80::caa0:30ff:fead:eb2f on eth0.*.
If I ping LorenzBBB1.local from the BBB it works, but LorenzBB1 it doesn't. Only the mDNS seems to work.
This is more of a how to get linux to play nice with domain names than a BBB question, but anyway I'm out of ideas on what to check.
I guess it could be an issues with the company router, but what configuration on a router could make lan dns not work for linux, but work fine on widnows?
Update: results of doing a du . | grep dhcp
8 ./etc/udhcpc.d
4 ./usr/share/common-licenses/busybox-udhcpc
4 ./usr/share/common-licenses/gadget-init-udhcpd
8 ./usr/share/udhcpc
hostname
requires rebooting orsystemctl restart avahi-daemon
so thatping LorenzBBB1.local
works from Linux (Ubunto in my case). Still doesn't work from Windows...