在 container 的 /etc/hostname 中指定名稱, 用 systemd-nspawn --network-macvlan=enp6s0 my-container1 啟動, 並在 dnsmasq 中增加一行設定, 讓 dnsmasq 以 hostname 分配固定 IP address dhcp-host=my-machine,192.168.0.123,infinite 後來, container 名稱從 my-container1 換成了 my-container2, 但 hostname 沒變 (還是 my-machine), 從此就再也取不到 192.168.0.