Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rate Thread Display Modes
Old 05-25-2005, 06:06 PM   #1
thebackwash
Prospect
 
Join Date: Jul 2004
Posts: 4
Having problems with /etc/hosts

I have been trying my best to get 10.4 to recognize my hosts file, but to no avail. It is rather large, (6MB,) but 10.3 had no problem recognizing it. Seeing as how Apple seems to like moving everything into netinfo, I tried loading it into netinfo with a simple niload hosts . < /etc/hosts. I let it run overnight to find that my hard drive was 1GB smaller, and that it was only about 1/15 finished loading the file. I have tooled around with lookupd (is this deprecated in 10.4?) with no success. Can someone tell me why such a simple thing is made so complex? By the way, MacOS X still resolves the sites that made it into my netinfo db using DNS.

relevant output from lookupd -configuration

LookupOrder: Cache FF DNS NI DS
_config_name: Host Configuration

Thanks to anyone who can help.
thebackwash is offline   Reply With Quote
Old 05-25-2005, 08:15 PM   #2
voldenuit
League Commissioner
 
Join Date: Sep 2003
Location: Old Europe
Posts: 5,146
6 MB is not exactly the size one would expect from a sane hosts file, remember, the internet switched to DNS about at that size of HOSTS...

If you have good reasons to have such an amount of info there, consider setting up a split-horizon DNS.
voldenuit is offline   Reply With Quote
Old 05-25-2005, 08:32 PM   #3
voldenuit
League Commissioner
 
Join Date: Sep 2003
Location: Old Europe
Posts: 5,146
A split-horizon DNS resolves queries coming from your LAN according to your instructions.

You could for example instruct it to resolve all annoyingflashpopupserver.com to 127.0.0.1 while still resolving normally queries you didn't instruct it to lie about.

There are other cases where split-horizon DNS is useful, but probably this is enough info to solve your problem.
voldenuit is offline   Reply With Quote
Old 05-25-2005, 11:32 PM   #4
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,334
If you have compiled the ultimate adserverlist please post a copy somewhere. But I agree with voldenuit - 6 megs is a bit big - something's wrong. Maybe post the head and tail of the file here?
acme.mail.order is offline   Reply With Quote
Old 08-10-2005, 12:49 AM   #5
magnamous
Prospect
 
Join Date: Jan 2002
Posts: 36
Smaller hosts file, same problem

My hosts file is about 40 KB, and I'm having the same problem. I followed the directions here, but it still doesn't work. I even tried rebooting.

Code:
$ lookupd -configuration

ConfigSource: default
LookupOrder: Cache NI DS
MaxIdleServers: 4
MaxIdleThreads: 2
MaxThreads: 64
TimeToLive: 43200
Timeout: 30
ValidateCache: YES
ValidationLatency: 15
_config_name: Global Configuration

LookupOrder: Cache FF DNS NI DS
_config_name: Host Configuration
Any ideas?
magnamous is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.