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.
 
I'm definitely interested in how to obtain a proper MAC address in a jail. I use IOCAGE if it makes any difference.
Up to date, I have no time to document all my configurations. But if you use jails with VNET, you can configure the MAC address, as many other aspects of the network configuration. So jails support this; Bastille exposes the MAC settings in its configurations; iocage allows to fine tune jails settings, so if it does not support directly some settings, you can set them "indirectly".
 
Up to date, I have no time to document all my configurations. But if you use jails with VNET, you can configure the MAC address, as many other aspects of the network configuration. So jails support this; Bastille exposes the MAC settings in its configurations; iocage allows to fine tune jails settings, so if it does not support directly some settings, you can set them "indirectly".
Any advice for jails management ?, what do you think works best.
 
Any advice for jails management ?, what do you think works best.
Absolutely no advice: I'm not expert; I started using Bastille only because it seems good enough; I really liked NixOS and Guix way to configure a system, but there is nothing of similar on FreeBSD; I'm not a professional system administrator, so I'm not directly exposed to all the problems that mature management platforms like K8S try to solve; I tried Ansible on Linux, and I didn't liked it; etc..;

For my private and semi professional settings, I liked FreeBSD, because in case of problems it is simpler to debug. I prefer to check what is not working in the jails, than debugging Docker containers; or systemd configurations. Also Guix, despite it is Scheme, it is not so easy to debug in case of problems in the configuration code, because error messages are rather obscure, and the stack trace is incomplete. In case of problems, FreeBSD is more transparent. It is easier to check what is not working under the hood.

I haven't found my ideal setting and management system, but FreeBSD seems a rather solid and simple-enough bases on which maybe add other tools.
 
Any advice for jails management ?, what do you think works best.
Recently I read s/wh (XigmaNAS Forum IIRC) that cbsd(8) is even better than bastille(8), but I did not try it myself yet. Bastille seems to be what many use, though.
cbsd-15.0.0 Yet another FreeBSD Jail, XEN and Bhyve Management Utility
cat /usr/ports/sysutils/cbsd/pkg-descr
CBSD is a cross-platform wrapper for fast deployment of
virtual machines and containers.

There're also 2 add-on ports. I don't know if webmin provides a module for any VM mgmt tool; if so, this could be an argument to take that, even if anotherone is "better".
 
Up to date, I have no time to document all my configurations. But if you use jails with VNET, you can configure the MAC address, as many other aspects of the network configuration. So jails support this; Bastille exposes the MAC settings in its configurations; iocage allows to fine tune jails settings, so if it does not support directly some settings, you can set them "indirectly".
I'm looking for some 'indirect' settings here:


but nothing jumps out at me.
 
Back
Top