On 10/16/23 11:57, Chris Albertson wrote:
> In 2023, no one should be editing the /etc/hosts file. The problem is
> that if you have “n” computers on your networks you need to keep n files
> all in sync every time you make a change. and WORSE, if you use DHCP to
> assign IP addresses the DHCP server has to have its “reservations list”
> in sync with all the hosts files. It is labor-intensive and error-prone.
So true;-)
>
> The best practice for a small, local network is to use DHCP is
> distribute IP addresses and DNS to resolve them. This is easy to set
> up with most home routers.
DHCP yes;-) DNS (at least the normal DNS), not so much. I prefer
ZeroConf/avahi which is distributes but reacts very similar to DNS when
you try to resolve names.
avahi 1034 1 0 07:48 ? 00:00:04 avahi-daemon:
running [feather6.local]
avahi 1041 1034 0 07:48 ? 00:00:00 avahi-daemon: chroot
helper
exists on all Linux systems (and the protocol is also supported by Apple
and I hope, Windows;-) Basically each host publishes it's own name-IP
translation, regardless of 'where the IP came from'. That helps when you
switch APs (or like many of my robot Pi's switch between Wifi-client and
AP more as needed.
A log from a remote HomeAssistant Pi/container
Welcome to the Home Assistant command line.
System information
IPv4 addresses for end0:
192.168.0.155/24
IPv6 addresses for end0: fdd7:7eaf:bc14:0:ead2:ed33:910b:ae91/64,
2002::501a:5f5f:ecdc:742f/64, fe80::4dfe:23c5:48d0:2e8f/64
IPv4 addresses for wlan0:
OS Version: Home Assistant OS 11.0
Home Assistant Core: 2023.10.3
Home Assistant URL:
http://homeassistant.local:8123
Observer URL:
http://homeassistant.local:4357
[core-ssh ~]$ nslookup feather6.local
Server: 127.0.0.11
Address: 127.0.0.11#53
Name: feather6.local
Address: 192.168.0.178
[core-ssh ~]$ dig feather6.local
; <<>> DiG 9.18.13 <<>> feather6.local
;; global options: +cmd
;; Got answer:
;; WARNING: .local is reserved for Multicast DNS
;; You are currently testing what happens when an mDNS query is leaked
to DNS
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26281
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: fa70ef624363c681 (echoed)
;; QUESTION SECTION:
;feather6.local. IN A
;; ANSWER SECTION:
feather6.local. 3 IN A 192.168.0.178
;; Query time: 0 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Mon Oct 16 12:10:49 PDT 2023
;; MSG SIZE rcvd: 71
[core-ssh ~]$ nslookup
google.com
Server: 127.0.0.11
Address: 127.0.0.11#53
Non-authoritative answer:
Name:
google.com
Address: 142.251.46.238
Name:
google.com
Address: 2607:f8b0:4005:813::200e
-- Marco
>
>> On Oct 11, 2023, at 2:35 PM, Mark Johnston <
mjst...@gmail.com> wrote:
>>
>> Ok, good info.
>>
>> What I am aware of that is new to ROS2 is it has it's own full
>> discovery of all nodes on the same ROS domain. So all the nodes you
>> want to 'see' each other have same ROS_DOMAIN_ID and they will all
>> discover each other and then be able to communicate over ROS topics.
>>
>> I was not aware that the hosts file could foul that up.
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hbrobotics+...@googlegroups.com
> <mailto:
hbrobotics+...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/hbrobotics/72ED476B-BDB0-4A16-B908-9BA36C96D81A%40gmail.com <
https://groups.google.com/d/msgid/hbrobotics/72ED476B-BDB0-4A16-B908-9BA36C96D81A%40gmail.com?utm_medium=email&utm_source=footer>.