6 Replies Latest reply: Apr 7, 2013 7:47 PM by chymb
OLDGUARDMD Level 1 Level 1 (10 points)

Our MAC systems are running Mac OS X version 10.6.8 with VMWare Fusion. We have noticed that these boxes all contain DNS entries for the virtual adapters associated with VMWare Fusion. Can someone shed some light on how Dynamic DNS registration happens on OSx 10.6.8? I have seen references to modifying the smb.conf file isolate the adapters, but that appears to have had no affect. I am not even sure Samba is involved at this point. We would like to restrict Dynamic DNS registration to just en0. The adapters that appear to be causing the problem are vmnet1 and vmnet8.

 

We have tried modifying the last lines of the smb.conf global section to include the following:

 

  interfaces = eth0

    bind interfaces only = yes

 

This appears to have no impact on the registrations. The key questions here are:

 

How does OS X decide which adapters to register?

Is Samba the process that performs the registration?

Is the behavior configurable so we can exclude vmnet1 and vmnet8 from Dynamic DNS registration?

 

Additional Information:

  • Systems are part of a Windows domain
  • DNS Servers are AD integrated Windows 2008 R2 servers.

Mac mini
  • 1. Re: VMWare Fusion Adapters Register in DNS
    MrHoffman Level 6 Level 6 (12,455 points)

    Windows Server DNS implements a connection between DHCP requests and DNS services; check with the Microsoft Windows Server documentation for details of that.  Here's how to implement Dynamic DNS (DDNS) on OS X Server.  Whether VMware itself gets involved here (and it may), I don't know.

     

    Follow the DHCP reservations around; that's the most likely path for this stuff.

     

    SMB (a port of the Samba server, on this OS X release) is a Windows-specific file and disk storage service, and not particularly connected with DNS or DHCP operations.

  • 2. Re: VMWare Fusion Adapters Register in DNS
    OLDGUARDMD Level 1 Level 1 (10 points)

    No DHCP involved. These systems are all static including the virtual machines in VMWare Fusion... I know about the DHCP settings you reference, but they do not appy in this situation.

  • 3. Re: VMWare Fusion Adapters Register in DNS
    OLDGUARDMD Level 1 Level 1 (10 points)

    So we have narrowed this down to the mDNSResponder service. When we stop the service the DNS records are unregistered. When we restart the service the DNS entries are created. We don't see any way in the MAN pages to tell the mDNSResponder service which adapters to register or exclude. Is there a way to exclude vmnet1 or vmnet8 from the adapters that get registered in Dynamic DNS?

  • 4. Re: VMWare Fusion Adapters Register in DNS
    OLDGUARDMD Level 1 Level 1 (10 points)

    So one of our techs found a solution that works for us. I am passing it on in case someone else runs into the same problem.

     

    We were unable to find a method of configuring the mDNSResponder service, and we really even failed to find anyone who understood how that service works.  On the VMWare side, there is a configuration file that tells VMWare fusion how to configure the virtual switches (VMNET1 and VMNET8). You can have the VMWare virtual switches provide DHCP and NAT translation even if you do not make the switches visible to ifconfig. the file to edit is located at the following location:

     

    /Library/Application\ Support/VMware\ Fusion/networking

     

    Edit the file and change the lines below in red from yes to no. We left DHCP and NAT set to yes, and that seems to allow the system to continue to operate normally even without the virtual adapters associated with the virtual switches.

     

     

    VERSION=1,0

    answer VNET_1_DHCP yes

    answer VNET_1_DHCP_CFG_HASH EE9700F0C9D80591CE6A3FD186CC21B6431CDA0A

    answer VNET_1_HOSTONLY_NETMASK 255.255.255.0

    answer VNET_1_HOSTONLY_SUBNET 192.168.217.0

    answer VNET_1_VIRTUAL_ADAPTER no

    answer VNET_8_DHCP yes

    answer VNET_8_DHCP_CFG_HASH 3F1A8E60BC64C2E12ABE50AF9A9F2BAD75A973A4

    answer VNET_8_HOSTONLY_NETMASK 255.255.255.0

    answer VNET_8_HOSTONLY_SUBNET 172.16.200.0

    answer VNET_8_NAT yes

    answer VNET_8_VIRTUAL_ADAPTER no

  • 5. Re: VMWare Fusion Adapters Register in DNS
    timeOday Level 1 Level 1 (0 points)

    I have the same problem and wanted to thank you for the helpful suggestion.

     

    One caveat is that (at least for a NAT'd guest) I don't see any way to address the guest, so it can't run server processes.  Applications on the host cannot route to the guest because they don't see a NIC on its subnet.  So you cannot export a file share from the guest, or ssh into it, etc.

  • 6. Re: VMWare Fusion Adapters Register in DNS
    chymb Level 1 Level 1 (0 points)

    This worked for me (on Mountain Lion, anyway):

     

    http://support.apple.com/kb/ht3169

     

    On (Mountain) Lion:

    dsconfigad -restrictDDNS "en0, en1, en2, en3, en4, en5, en6, en7, en8, en9"

     

    On (Snow) Leopard add the following lines to the end of /etc/smb.conf:

    [global]

    interfaces = en0 en1 en2 en3 en4 en5 en6 en7 en8 en9

    bind interfaces only = yes