|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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. |
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 |
|
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?
|
|
|
|
|
|
#5 |
|
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 |
|
|
|
![]() |
|
|