The following worked for me:
Assign static IP address to systemd-nspawn container (private networking mode).
Note: I just modified the DHCPServer=no option because it's no needed and to prevent conflict with the dnsmasq's DHCP server running on the host in my use case.