Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAT DNS proxy #24

Open
xdissent opened this issue Aug 24, 2015 · 1 comment
Open

NAT DNS proxy #24

xdissent opened this issue Aug 24, 2015 · 1 comment

Comments

@xdissent
Copy link
Owner

See xdissent/ievms#164

@kkopachev
Copy link

I'm using simple bash script to set some wildcard domain mappings for vms:

#!/usr/bin/env bash

VBoxManage --version &> /dev/null

if [ $? -ne 0 ]; then
    echo "Did you install VirtualBox?"
    exit 1
fi

VBoxManage list vms | grep IE | sed 's/"\(.*\)".*/\1/' | while read name
do
    VBoxManage getextradata "$name" enumerate | grep ievms &> /dev/null
    if [ $? -eq 0 ]; then
        VBoxManage getextradata "$name" enumerate
        VBoxManage modifyvm "$name" --natdnsproxy1 off
        VBoxManage modifyvm "$name" --natdnshostresolver1 on
        VBoxManage setextradata "$name" "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/mysite/HostIP" "192.168.33.10"
        VBoxManage setextradata "$name" "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/mysite/HostNamePattern" "*.localsite.com"
    fi
done

replace `192.168.33.10` and `localsite.com` by whatever needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants