By "hostname" I mean the item by that name in LuCI's static lease setting, i.e.:
LuCI > Network > DHCP and DNS > Static Leases (tap) > Add (button)
or the 'option name' item in a /etc/config/dhcp
block that looks like:
config host
option mac '00:26:66:E5:80:15'
option name 'N5b-WAN'
option dns '1'
option ip '10.10.10.4'
In that example, the hostname is N5b-WAN
Question: Must this hostname I enter by LuCI or command line match the actual hostname of the machine in question?
You may think, "Why can't just get the hostname right instead of wondring what happens when you get it wrong?"
The situation is that N5b is a (regular) router, and I may not know how to find out its hostname. Also it has two different MAC addresses on the WAN and the LAN side, and I want to have two separate static lease items for them going by two different names.
To my not inconsiderable agony, I learned that a hostname like "N5b WAN" (with space) entered into config quite broke the router, obliging it to be factory reset.
So again the question is, can I enter any hostname so long as it is not ungrammatical like "N5b WAN" (or leave it blank) or must it actually match the actual hostname? Thanks.