Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

Cannot resolve DNS names inside Mac OS X Snow Leopard Guest

Article ID: 6651 
Last Review: Oct,28 2009
Author: Ivan Chega
Last updated by: Ivan Chega APPLIES TO:
  • Parallels Desktop for Mac 4.x
  • Parallels Server for Mac

Symptoms

In Snow Leopard Guest, user is unable to browse web pages or connect to file shares due to name resolution error.

Resolution

Parallels Server

To 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



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products