Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'changing hostname' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
changing hostname
Authored by: gteague on Mar 04, '02 12:46:39AM

i've tried nearly all of these tips and some others (editing the /etc/rc.boot file) and none of them seem to cover all the bases.

for example: i have a lan behind a router with an external ip of 216.x.x.x and i have a website on a server inside the lan. so my server has an internal 10.x.x.x address and the website on the server has the 216.x.x.x external address for the fully qualified internet domain name.

changing just the /etc/hostconfig file on this server seems to work. upon restart the generic localhost is replaced by the machine name. a ping to the website or the hostname pings the external (216.x) address. but, a ping to localhost also pings this external address rather than 127.0.0.1. i fear this might cause trouble for some internal operations.

and on a host on the lan it is worse since it too takes on the external address rather than the internal (10.x) one. so i would have 2 hosts on the same lan whose discrete names break back to the same ip address.

what i would think i need is for localhost to still map to 127.0.0.1, the website to break back to the external address (although this might not be needed since i have the router (which technically is the owner of the external address) set to forward requests to port 80 (http) for that address to the lan server. so i would say that the server itself doesn't even need this external address.

i need the local hostname to break back to the internal (10.x) ip addresses. and this is probably realized by a hosts file. but i've been reluctant so far to dig into that mess. redhat and mac os9 just require a hosts file, but osx seems to need the official caching server (bind) running and feeding off lookupd.

it's way too much for me. can't anyone just call or email apple and try to get a upper-tier tech to tell us all the 'apple blessed' way?

/guy



[ Reply to This | # ]