libremesh / lime-packages

LibreMesh packages configuring OpenWrt for wireless mesh networking
https://libremesh.org/
GNU Affero General Public License v3.0
277 stars 96 forks source link

Add .internal to domains for resolving host names #933

Open ilario opened 2 years ago

ilario commented 2 years ago

Disclaimer: this is not related with the thisnode.info address for connecting to the nearest node which is here: https://github.com/libremesh/lime-packages/blob/c23828c1e8aa055f143375c4d89352e8ff1c4283/packages/lime-proto-anygw/files/usr/lib/lua/lime/proto/anygw.lua#L14


Once upon a time we had the .lan domain, that didn't work on Google Chrome browser #540, so we replaced it with .thisnode.info #541 so that now the connected hosts can be resolved as laptop-mario.thisnode.info (which I think that nobody uses as it is not much known) or typing http://laptop-mario or laptop-mario/ (both unusual and weird for the average user). This is in the domain field of the /etc/config/lime-* configuration files https://github.com/libremesh/lime-packages/blob/78162b4d773c9e8d01f63801ce3464ea84ac89b6/packages/lime-system/files/etc/config/lime-defaults#L10

which should be replaced by something like nodes.thenameofmycommunity.org so that the hosts can be resolved as laptop-mario.nodes.thenameofmycommunity.org as documented here: https://github.com/libremesh/lime-packages/blob/4910e9f7617426454ea261b8c2d4117db5395fda/packages/lime-docs/files/www/docs/lime-example.txt#L20

Looking on the internet seems that the .test domain should work on every browser. So, additionally to being able to connect to the hosts in the aforementioned methods, we could also have laptop-mario.test

This should be as easy as adding hostname..".test" to this list: https://github.com/libremesh/lime-packages/blob/c23828c1e8aa055f143375c4d89352e8ff1c4283/packages/lime-proto-anygw/files/usr/lib/lua/lime/proto/anygw.lua#L113

ilario commented 8 months ago

ICANN proposed a domain that will never become TLD, so that we should use for internal only use: .internal

https://www.icann.org/en/public-comment/proceeding/proposed-top-level-domain-string-for-private-use-24-01-2024

https://itp.cdn.icann.org/en/files/root-system/identification-tld-private-use-24-01-2024-en.pdf