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: /etc/hosts config



TO ADD HOSTS:
vi /etc/hosts
niload hosts . < /etc/hosts
nidump hosts .

On Tuesday, April 29, 2003, at 06:05 PM, Justin Krisko wrote:

> I am trying to hardcode a DNS entry into my clients. I want them to
> always
> resolve entry.edu to 123.45.67.89 - and to do this internally before
> consulting the DNS servers.
>
> Thus, when I specify that hostname in LDAP configs it will always use
> that
> IP, rather than one returned by the external DNS.
>
> So I have altered /etc/hosts so that it looks like this:
>
> 127.0.0.1 localhost
> 123.45.67.89 entry.edu
> 255.255.255.255 broadcasthost
> ::1 localhost
>
>
> but this didn't seem to alter queries done through lookupd, it would
> still
> use the external DNS. the lookupd order seems correct, and I flushed
> the
> cache:
>
> LookupOrder: Cache FF DNS NI DS
> _config_name: Host Configuration
>
>
> Do I need to setup DirectoryAccess to use the BSD config files also? I
> tried
> doing that and adding it to the search path, above the LDAP stuff, but
> that
> made no difference either. I made no changes to
> /Library/Preferences/DirectoryService/DSFFplugin.plist as it seems
> already
> set up to look at /etc/hosts in its default state.
>
> Any suggestions on getting this to work?
>
> Thanks,
>
> Justin.
>
>
> --
> Justin Krisko
> Apple Support
> Knowledge & IT Services Centre
>
> Edith Cowan University
> Perth, Western Australia
> http://www.ecu.edu.au
> _______________________________________________
> 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: 
 >/etc/hosts config (From: Justin Krisko <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.