Is there a way to add a "published" hostname, with services attached to that hostname, *without* using a DHCP lease?
I have a system with eth1 already getting a DHCP lease from the mesh node, it has a hostname host.local.mesh, everyone on the mesh can resolve this hostname without issue.
But is there a way I make eth1:0 have a "published" hostname of host1.local.mesh without using the DHCP lease functionality?
I have no problem editing a config file or two...
thank for any info!
73
Eric - kg6wxc
Eric, The hostnames are being advertised via OLSR NameServices plugin. It might take code changes and certainly testing to see if there is a way to do this and keep the UI functionality working and compatible--which is looking for both hostname and matching service advertisements. Doing a "save as" in the UI might overwrite the config file manual changes, or the changes might break UI code.
See: https://github.com/servalproject/olsr/blob/master/lib/nameservice/README_NAMESERVICE
Standard compensatory extra care clause :) . Changing OLSR config files is propagating something new, different, or even broken across the mesh network and may raise a neighbor mesher's blood pressure.
Joe AE6XE
Names are intended to be advertised for devices that will be accessible by name (aka those that are hosting a service) and these devices will need a defined IP address this is why it's tied to a "reservation"
You can statically configure the IP address on your server but you would still want to "reserve" that IP address on the node so it knows it can't allocate it to another device.
On the external device you can statically configure the IP address (without it requesting DHCP lease) so that way the device has it's IP address, the node knows the IP address is 'used' by a system, and the name you chose gets advertised out.
I had thought of that, but was afraid to put in a bogus MAC address for fear of breaking everything, but it look like it does not.
Thanks again!
73
Why mess with static?
MB
This is what I do with maggie.ka9q.net, a Linux system that acts as my home router. It also connects to my cable modem, so it can route local computers to either the mesh network (network 10.0.0.0/8) or the "real" Internet. I also have it providing DNS service for the local.mesh zone, which is nonstandard and not part of the global DNS namespace.
Follow this suggestion at your own risk.