Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting host aliases (like /etc/hosts)?



it might be a pain in the butt if you don't use a centralized DNS server. but you can place a line in your /etc/resolv.conf file that states

foo.bar 192.168.1.1

but only that machine will be able to resolve that alias. So you would have to enter that in every machine.

--jeff


On Thursday, January 30, 2003, at 03:46 PM, Bill Kelly wrote:

Hi,

I'm trying to figure out how to set up host name aliases for
systems on our local network... I checked /etc/hosts, but it
says it's for single-user runlevel only, and referred me to
lookupd, which gets its info from netinfo, etc...

I see that if I do:

# nidump hosts .
127.0.0.1 localhost
255.255.255.255 broadcasthost

those basic names are defined.... Can anyone tell me how I would
go about adding, say, "flaco" as the host name alias for some IP
on our network, like 192.168.100.50...?

Does this seem a reasonable way to access machines by name on
a small local network? Or do people tend to run their own DNS
servers, rather than making host name aliases?


Thanks!

Bill
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >setting host aliases (like /etc/hosts)? (From: "Bill Kelly" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.