|
|
The advice here didn't work for me, but this did...
I was psyched to find this thread, but for some reason, using the graphic NetInfo manager didn't work for me. Even tried rebooting but my changes didn't stick.
BUT - found another page on the subject here that does work: http://quigley.durrow.com/hostsundermacosx.html His advice seems a little strange, and I admit that I don't understand it, but it DOES work for me, whereas the other things mentioned here didn't, maybe because I'm trying to force a domain name for a box across the room like this: 192.168.0.5 testdomain.test 192.168.0.6 anotherdomain.test SO FIRST - go EDIT your /etc/hosts file the way you would under Linux or BSD. (like the above.) Add your entries there. THEN - go follow that weblink above and do his advice. It works.
get TMA
The Moose's Apprentice (TMA) is a great little tool that does many things for you...including fixing an issue with the lookupd order.
The advice here didn't work for me, but this did...
A couple of dead links in this thread...but the topic is still alive and well, 6 years later into 10.3-10.4!
There are actually a couple of things that must be done in combination for all this work. While niload will get your hosts file into NetInfo, if lookupd is using the cache (which is by default in 10.3.9), your changes may take hours to go into effect. Here's an up-to-date link that explains all the necessary changes:
http://aplawrence.com/MacOSX/macosxlookupd.html The changes work as advertised, but only if you actually read the entire document and check your lookupd lookup order for Hosts (by default, DNS is consulted before NetInfo, so niload is useless if you are trying to resolve local domains locally unless you also change the order of lookup so that NI comes before DNS). Important to note: At a minimum, you will need to flush your lookupd cache for any Host changes to NetInfo to take effect:
Also, consider using the -d switch with niload. Otherwise, multiple localhost entries in your /etc/hosts file (important for a number of internal operations and at boot time) won't make it into your NetInfo database. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|