Re: Solved problem -916 errors in remote events
Re: Solved problem -916 errors in remote events
- Subject: Re: Solved problem -916 errors in remote events
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 12 Nov 2001 09:31:34 -0500
Most of us here are none too happy to mess with stuff like this, being
unsure of how shell commands work and having been warned repeatedly that you
can hose your entire system if you don't know how to do it.
This cries out for a GUI application from Apple or somebody else. Every home
network should have easily configured DNS names in lieu of ip addresses.
NetInfo Manager doesn't satisfy, especially given the current state of
documentation.
Lacking a suitable GUI utility, it would be good if somebody who is
knowledgeable could put all of these things into an AppleScript and embedded
shell commands, with a simple AppleScript user interface. Maybe just a loop
through all mounted or available local file-sharing machines, with a Display
Dialog in each loop to report the next ip address and ask what DNS name to
give it.
Any takers?
on 11/12/01 8:45 AM, Bill Conner at email@hidden wrote:
>
Below is how to configure both:
>
>
1) adding host entries is pretty easy.
>
open /etc/hosts in your favorite editor. If you're not into vi, this
>
will work for you:
>
sudo open -e /etc/hosts
>
>
add entries as needed. host entries are of the form: ipaddress hostname
>
ex. 10.0.1.53 lilith
>
>
2) Setting up lookupd to use flat files before DNS (again this is not
>
necessary but makes lookupd use /etc/hosts as well)
>
I prefer maintaining an /etc/hosts file over netinfo. You can modify it
>
quick and easy. I suppose I could have written a script to insert the
>
netinfo records but I'm lazy ;)
>
>
put the following in a text file called ni.txt
>
{
>
"name" = ( "locations" );
>
CHILDREN = (
>
{
>
"LookupOrder" = ( "CacheAgent", "FFAgent", "DNSAgent", "NIAgent" );
>
"name" = ( "lookupd" );
>
CHILDREN = (
>
{
>
"LookupOrder" = ( "CacheAgent", "FFAgent", "DNSAgent",
>
"NIAgent" );
>
"name" = ( "hosts" );
>
}
>
)
>
}
>
)
>
}
>
>
now load the file into netinfo
>
sudo niload -d -r /locations . < ni.txt
>
>
restart lookupd (or restart you're machine, but shame on you for
>
restarting OSX)
>
sudo kill -HUP `ps -aux | grep lookupd | grep -v grep | awk '{ print
>
$2 }'`
>
>
lookupd -configuration should show:
>
LookupOrder: CacheAgent FFAgent DNSAgent NIAgent
>
>
hope this helps,
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont