cuckoobox/cuckoo — pull request #36 by apridgen (2012-07-01 05:22:27+00:00)
Title: Improving the ability to configure host IPs dynamically

This current revision incorporates DNS resolution of hosts by their label. This initial functionality was accomplished by adding a resolve function to the abstract.MachineManager. The MachineManager.resolve function is called after a VM is selected and then started. An additional attribute "resolver" was added to the machine dictionary, and if this setting is a string set to a key-word like "dns" or "ipv4_guest_props" that indicates how VM's IP address will be resolved. These strings will be interpreted by the respective MachineManagers. Currently, only the DNS resolution is supported by the abstract.MachineManager resolve using socket.getaddrinfo. The next step is to implement a resolution method in VirtualBox that can use the add-ons to automatically resolve the IP address using guest properties.