How to set ServerName on home network

I am using dnsmasq which is a dns server but not sure how to assign hostnames to specific IP addresses.
I thought you already know, but maybe not: you can use the MAC adress to assign "static" IP# to your clients, i.e. they get the same IP# every time they request one via DHCP. Excuse me if you already knew that. This is a feature that most DHCP servers allow the user to set, any cheap consumer-grade router a saw had that.
 
I thought you already know, but maybe not: you can use the MAC adress to assign "static" IP# to your clients, i.e. they get the same IP# every time they request one via DHCP. Excuse me if you already knew that. This is a feature that most DHCP servers allow the user to set, any cheap consumer-grade router a saw had that.
Yes I do set the IP address of hosts on my system, what I am unsure about is how to get the MAC address of a jail.

Is that created when the jail is created? Presumably dnsmasq assigns the IP address, so the MAC address must be stored somewhere.

If I was able to use that with dnsnasq that would be ideal.
 
Yes I do set the IP address of hosts on my system, what I am unsure about is how to get the MAC address of a jail.

Is that created when the jail is created? Presumably dnsmasq assigns the IP address, so the MAC address must be stored somewhere.

If I was able to use that with dnsnasq that would be ideal.
IMHO you should be able to set that to any valid value. E.g. on my laptop I have a lagg(4) failover of the wlan(4) and wired ethernet. The wired ethernet interface MAC address must be set to the one of the wlan(4) interface, so they have the same MAC and the other side does not get confused when a failover switch happens. So it's setable, and if you can't set it from the host you may be able to set it from inside the jail.
 
Back
Top