RAFMuseum

Q: How do I set up networking for DNS resolution?

I am setting up a brand new iMac (10.9.4). I've put the two internal DNS servers into the network configuration (Windows Servers running DNS). However pinging by hostname and FQDN doesn't work

 

Matts-iMac:~ mattgeorge$ ping victor.rafmuseum.local

ping: cannot resolve victor.rafmuseum.local: Unknown host

 

Interestingly, nslookup is fine:

 

Matts-iMac:~ mattgeorge$ nslookup victor.rafmuseum.local

Server: 172.16.0.11

Address: 172.16.0.11#53

 

Name: victor.rafmuseum.local

Address: 172.16.0.15

 

And pinging the IP address works correctly too. Windows servers appear in the finder and I can connect to them from there but the Connect to Server option again will not resolve a DNS address. Also in researching this I note that Directory Access no longer appears in Applications.



Tim

iMac, OS X Mavericks (10.9.4)

Posted on Jul 24, 2014 2:54 AM

Close

Q: How do I set up networking for DNS resolution?

  • All replies
  • Helpful answers

  • by BobHarris,

    BobHarris BobHarris Jul 24, 2014 5:55 AM in response to RAFMuseum
    Level 6 (19,633 points)
    Mac OS X
    Jul 24, 2014 5:55 AM in response to RAFMuseum

    I think .local is based on Bonjour advertised services, not your DNS server.

     

    You could try using "Bonjour Browser" to see what services are advertising on your local network

    <http://www.macupdate.com/app/mac/13388/bonjour-browser>

     

    My experience with .local has been names with a "Single" period, such as "BobBookPro.local", not multiple periods.  But then again, my .local experience is limited to talking to my own Macs in my home or the local LAN subnet at work.

     

    You said you put 2 local DNS servers into the network configuration.  Does that mean you have added the DNS servers to the physical network, or that you told the Mac what the 2 DNS servers were?  System Preferences -> Network -> Advanced -> DNS -> [+] ???

  • by RAFMuseum,

    RAFMuseum RAFMuseum Jul 24, 2014 6:23 AM in response to BobHarris
    Level 1 (0 points)
    Jul 24, 2014 6:23 AM in response to BobHarris

    I put the two DNS servers in the Network System Preference Pane under Advanced -> DNS.

     

    Mac OS X v10.4, 10.5, 10.6: How to look up ".local" hostnames via both Bonjour and standard DNS suggests that my DNS server must not be correctly configured because OS X sends the request correctly using unicast DNS.

     

    I seem to remember some utility called DotLocalizer which solved this problem...

     

     

         Tim

  • by RAFMuseum,

    RAFMuseum RAFMuseum Jul 24, 2014 7:41 AM in response to BobHarris
    Level 1 (0 points)
    Jul 24, 2014 7:41 AM in response to BobHarris

    I have a 10.8.5 server that, I've noticed, resolves the DNS names without any trouble. If this is upgraded to Mavericks server, will that stop... And could I theoretically put DNS on the server and point my Macs to that...?

  • by BobHarris,

    BobHarris BobHarris Jul 24, 2014 8:00 AM in response to RAFMuseum
    Level 6 (19,633 points)
    Mac OS X
    Jul 24, 2014 8:00 AM in response to RAFMuseum

    I do not run Mac OS X Server, so I have no personal experience.  However, I do not know why Mountain Lion vs Mavericks Mac OS X Server would be different.

     

    If you are concerned, you could always install Mavericks on an external bootable disk, and then apply Mac OS X Server and test it before committing to Mavericks.

     

    You might check out some of 's web page (he is a frequently contributor to these forums).  He does a lot of work with Mac OS X Server

    <http://labs.hoffmanlabs.com/node/1436>

    and knows a great deal about DNS and DNS servers.

  • by MrHoffman,Helpful

    MrHoffman MrHoffman Jul 24, 2014 1:06 PM in response to RAFMuseum
    Level 6 (15,637 points)
    Mac OS X
    Jul 24, 2014 1:06 PM in response to RAFMuseum

    This is the chowder-headed default value that's arises from older Windows Server installations.   Microsoft fixed this in more recent versions.  Folks that didn't know DNS and that chose to take the default top-level domain from older Windows Server installations were led into a morass, unfortunately. 


    You're basically going to have to run parallel DNS services until you can reconfigure those Windows Server DNS servers over into a valid top-level domain — when Microsoft specified this default of .local, .local was not a reserved top-level domain — or otherwise limp along here.   This because .local is a reserved domain now, as it's used for Bonjour/mDNS. 

     

    The usual fix is to move into a real and registered domain, which is obviously a pain now, but only tends to get worse over time.

     

    The usual workaround is to set up parallel DNS services, to add "local" to the list of search domains within network preferences (haven't tried this recently, but it was the old workaround for this case, see Mac OS X v10.4, 10.5, 10.6: How to look up ".local" hostnames via both Bonjour and standard DNS) and then incrementally migrate preferably to a real-and-registered domain over time, and/or to otherwise avoid using the .local domain where that's feasible. 

     

    FWIW, rafmuseum.net is currently available for registration, and you can use a subdomain of one you already have — if one of those other existing registrations is associated with your organization — and there are a gazillion other new top-level domains now or coming online to choose from — though you can't have .local here, as that's RFC-reserved for Bonjour/mDNS activity.

  • by RAFMuseum,

    RAFMuseum RAFMuseum Jul 25, 2014 6:30 AM in response to MrHoffman
    Level 1 (0 points)
    Jul 25, 2014 6:30 AM in response to MrHoffman

    OK well I am not going to be able to change the name of my Windows Domain. I have the Mountain Lion Server which is resolving the FQDN perfectly well, so how do I get my Macs (and there are only 3 with the possibility of a 4th soon) to talk to the OS X Server for DNS?

  • by MrHoffman,

    MrHoffman MrHoffman Jul 25, 2014 7:44 AM in response to RAFMuseum
    Level 6 (15,637 points)
    Mac OS X
    Jul 25, 2014 7:44 AM in response to RAFMuseum

    RAFMuseum wrote:

     

    OK well I am not going to be able to change the name of my Windows Domain. I have the Mountain Lion Server which is resolving the FQDN perfectly well, so how do I get my Macs (and there are only 3 with the possibility of a 4th soon) to talk to the OS X Server for DNS?

     

    Set up the OS X Server DNS properly and compliant with the RFCs and preferably using a real and registered domain or subdomain, and incrementally remove or migrate the Windows Server configuration from its present invalid and non-compliant state over to an RFC-compliant and registered domain or subdomain.  Then aim the migrated clients and the newly-arrived clients at the DNS servers with the proper settings using either static configurations, using connections to a subnet or SSID with proper settings, or with manually-established local DHCP settings.

  • by RAFMuseum,

    RAFMuseum RAFMuseum Jul 31, 2014 12:57 AM in response to MrHoffman
    Level 1 (0 points)
    Jul 31, 2014 12:57 AM in response to MrHoffman

    I have also tested DNS resolution using a pre-release version of Yosemite, and it works.

     

    So clearly the foregoing advice may be correct, but there is something else happening - and that's my more immediate priority.