Inserting vhostdomain into /etc/hosts now works. Tested compiled binary and it correctly generates a config, links it, and inserts. User must manually restart apache2 via apache2ctl or other means in order to see the vhost'ed site in a browser. Now to get the vhostdomain removal from /etc/hosts working...