Using the shared drive with a custom DNS server
If you are using a manual network or providing DNS services to VMs on an automatic network, shortcut links to the shared drive or the network path
\\gw\shared may not work correctly.
To fix this, you can either:
Connect to the shared drive using the network gateway IP address (instead of
\\gw\sharedalias by modifying the guest OS network settings or DNS hosts file.
For general information about using the shared drive, see Adding and sharing files with the shared drive.
To test whether the shared drive connection issue is caused by the DNS:
- Within your Windows VM, click Start > Run.
\\Your.Gateway.IP.Address\shared. For example:
If this command resolves to the shared drive, then the issue is caused by the current DNS configuration.
To locate the network gateway IP address, see Finding the network gateway IP address.
- To confirm the issue, replace the gateway IP address with
gw, which will most likely fail to resolve:
You can continue to use the gateway IP address to connect to the shared drive, or you can edit the VM or DNS to recognize the
\\gw\shared alias (see below).
Options for restoring the
There are several options for getting a VM on a custom DNS server to recognize
\\gw\shared as the shared drive address.
If you are providing your own DNS, you can list the gateway IP address as the alternate DNS server in the VM operating system.
For example, to list the gateway address as the alternate DNS server in Windows 2008 R2 or Windows 7:
- Right-click Network and select Properties.
- Click Change Adapter Settings.
- Right-click the network adapter you want to change, and select Properties.
- Select TCP/IPv4 and click Properties.
If the VM is also configured to use a static IP address, set the primary DNS suffix of the VM.
- Right-click Computer and select Properties.
- In the Computer Name, Domain, and Workgroup Settings section, click Change Settings.
- On the Computer Name tab, click Change.
- In the Computer Name/Domain Changes pop-up, click More.
- Set the Primary DNS suffix of this computer to be that of the domain of your network in Skytap—the most common defaults are “example.com” or “test.net”.
Modify the VM hosts file to include the gateway IP address
If you are providing your own DNS, you can modify the VM hosts file to include an entry resolving your gateway IP address (for example,
For example, to specify the gateway IP address in Windows 2008 R2 or Windows 7
Open the following file in a plain text editor such as Notepad:
Add the following entry to this file:
If you are providing your own DNS, you can add a Host A record to the DNS server. This option eliminates the need to edit individual host files for every VM. After adding the Host A record, flush the DNS cache on each VM.
If you replicate the DNS server, you may need to change the hostname of the Host A record.