Symptoms
In Snow Leopard Guest, user is unable to browse web pages or connect to file shares due to name resolution error.Resolution
Parallels ServerTo solve the issue for Parallels Server virtual machines it is enough to install Parallels Tools inside the Snow Leopard virtual machine.
To do so, please click on Virtual Machine in the Parallels Management Console top menu -> Install Parallels Tools.
Parallels Desktop
There are 2 possible solutions: temporarily solution and permanent solution.
Temporary solution works only until virtual machine reboot:
1.Open Terminal.
2.Issue the following command:
$ sudo killall mDNSResponder
Permanent workaround assumes restarting mDNSResponder service. In order to automatically restart mDNSResponder on system start, please do following:
1. Prepare mDNSResponder restarting service.
Create file "/Library/Parallels Guest Tools/mDNSResponderKeeper" containing following lines:
#!/bin/sh
for i in 1 2 3 4 5; do
logger -s -t mDNSResponderKeeper 'restarting mDNSResponder...'
killall mDNSResponder
sleep 60
done
Make this file executable by calling following command:
$ sudo chmod a+x /Library/Parallels\ Guest\ Tools/mDNSResponderKeeper
2. Prepare service registration entry.
Create file /Library/LaunchDaemons/com.parallels.mDNSResponderKeeper.plist with following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.parallels.mDNSResponderKeeper</string>
<key>ProgramArguments</key>
<array>
<string>/Library/Parallels Guest Tools/mDNSResponderKeeper</string>
</array>
<key>KeepAlive</key>
<false/>
<key>Umask</key>
<integer>0</integer>
</dict>
</plist>
3. Register service.
Register service ctreated above with following command:
$ sudo launchctl load /Library/LaunchDaemons/com.parallels.mDNSResponderKeeper.plist
4. Start service.
Start service with the following command:
$ sudo launchctl start com.parallels.mDNSResponderKeeper