Hello everyone,

Using the default config, containers will have their IP attributed by the 
dnsmasq service. I'd like to write in the '/etc/hosts' file of the host system 
the hostname and the corresponding IP address of each container I start.
I will then use this hostname in an iptable rules for port forwarding. But what 
if dnsmasq change an IP at the end of the lease ?
So the question is: how long an IP given by dnsmasq will last ? May I see one 
of my container have its IP changed ? Any ways to have the dnsmasq table synced 
with the /etc/hosts file (container's host side) ?

Kind regards
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to