4 Jan 2006 · Filed in Explanation
![For For](/uploads/1/2/4/3/124379192/927862799.jpg)
On a boot/restart everything works fine; my Mac gets DNS resolutions properly. But after the Mac goes to sleep, or sits for an extended period, it forgets about the internal DNS server and queries external servers. A re-apply in the Network PrefPane resolves the problem until the next time the Mac.
OpenMediaVault is the best and lightweight home server OS that is built. OS X: You need only one tiny command to start a web server from any directory through OS X's terminal. If you've got a web site lying around and need to test it out, this is possibly the fastest. Though there are other packages too for Mac for developing a local server like MAMP. As WAMP is for Windows, similarly MAMP is for Mac, but it is for all Windows, Mac and Linux. Before going into installation you need to download the version of.
Some time ago, Mac OS X Hints published a hint I submitted regarding the use of the
.local
TLD (top level domain) with Mac OS X. Specifically, the hint centered around the use of Mac OS X with Active Directory domains using the .local
TLD. For ease of access, here’s that same hint.Basically, Mac OS X uses the
.local
TLD for Bonjour/Rendezvous services, and is configured to use multicast DNS (mDNS) for discovery of those services. This configuration occurs via a file named local
in the /etc/resolver
directory. Apple’s Knowledge Base article offers a solution, but that solution involves editing this local
file, which affects Bonjour/Rendezvous operation. This solution, on the other hand, does not affect the local
file in any way, and thus does not interfere with Bonjour/Rendezvous.Let’s say that you need to integrate Mac OS X with an Active Directory domain called company.local. Simply create a file in
/etc/resolver
named company.local
with the following contents:Obviously, replace the letters in the text above with the IP addresses of your appropriate DNS servers for the company.local Active Directory domain. Then, flush the lookupd cache with
lookupd -flushcache
and that’s it!With this file in place, your Mac OS X system will resolve company.local (or subdomain.company.local) via the instructions in the file
/etc/resolver/company.local
, but will handle Bonjour/Rendezvous service discovery via mDNS in the same fashion.Metadata and Navigation
Be social and share this post!
Related Posts
- Linux-AD Integration Wrap-Up22 Jul 2005
- Complete Linux-AD Authentication Details22 Dec 2005
- Cisco PIX VPN and Active Directory Integration22 Nov 2005
May 4, 2013 11:51 PM
Great guide, thanks John.
Just a note, in case anyone has the same issue. At first I couldn't get this to work. I tried logging out and back in (still no joy), then restarting the mac (still no joy).
![For For](/uploads/1/2/4/3/124379192/927862799.jpg)
Try doing both of those first. However, if, like me, you still can't get the local host site to load, try the following: You should find a file at /Library/WebServer/Documents/index.html.en . This contains the text 'It works!' referred to in the post. What I did was duplicate that file in the same folder and changed the duplicate's name to 'index.html', leaving the original in situ.
Both local and user sites then loaded. After which, I was able to delete the duplicated file and everything now works without issue. Just to be clear, leave the original file index.html.en where it is, untouched and unharmed throughout this step.
Local Server For Mac Os High Sierra
Not sure why I had to take this mysterious detour - probably something local to my machine, but if you're having trouble after following the guide above, see if it helps.
Local Server For Mac Os
May 4, 2013 11:51 PM