1 |
Dan Farrell wrote: |
2 |
> On Tue, 27 Nov 2007 13:26:18 -0600 |
3 |
> Dale <dalek1967@×××××××××.net> wrote: |
4 |
> |
5 |
> |
6 |
>> Just to add to this, I was using the IP address too and it was very |
7 |
>> slow. This was also on a local network. After adding the lines to my |
8 |
>> host files, it was fast no matter whether I used the name or the IP |
9 |
>> address. I still don't understand why this matters tho. |
10 |
>> |
11 |
>> Just a thought. |
12 |
>> |
13 |
>> Dale |
14 |
>> |
15 |
> |
16 |
> I am guessing your /etc/nsswitch.conf says: |
17 |
> hosts: files dns |
18 |
> |
19 |
> in this case, the /etc/hosts file will be consulted before the dns. If |
20 |
> you provide an IP address, it will probably want to do a reverse lookup |
21 |
> to the name (for .ssh/known-hosts for one); if provided a domain name, |
22 |
> it will have to look it up. |
23 |
> |
24 |
|
25 |
You are correct. It has that exact line in the nsswitch.conf file. |
26 |
Someone tried to explain the "lookup" thing but it just went over my |
27 |
head. I know when I go to google for example that it goes to a DNS |
28 |
server to get the IP to know where to go to. I just never could figure |
29 |
why it did that when it has the number already. I just know that adding |
30 |
that to the host file worked like a charm. |
31 |
|
32 |
I'm still curious as to why the OP is having this problem. I suspect, |
33 |
like me all the time, it will be something pretty simple. We always |
34 |
find the complicated stuff. LOL |
35 |
|
36 |
Dale |
37 |
|
38 |
:-) :-) :-) |