Re: hosts, resolv setup?
Quoting Svante Signell <svante.signell@telia.com> [010221 10:28]:
> > > Quoting Svante Signell <svante.signell@telia.com> [010217 07:50]:
> > > /etc/hosts:
> > > 192.160.0.1 host1.my.own.domain host1
> > > 192.160.0.2 host2.my.own.domain host2
> Tried tcpdump on a ssh to the same host using the local I/F 127.0.0.1
> and the LAN I/F 192.160.0.4. sshd tries to contact the tree nameservers in my resolv.conf twice
> times before timing out. In other cases it tries four itmes before
> password prompt and the twice after.
> 09:37:07.565017 192.168.0.4.32824 > nameserver1.53: 58110+ A? host4.my.own.domain. (39) (DF)
I remember some problems I had with sendmail, when I used dialup. It
would hang the bootup 60 seconds, while trying to resolve its own
hostname. It turned out that I needed to append a '.' to my hostnames in
the hostfile. Seeing that the names from tcpdump are asked for with a
dot at the end (indicating the final "top domain"?), it might be worth
trying to add a dot to your names?
> Feb 21 09:23:00 host4 sshd[6451]: WARNING: /etc/ssh/primes does not exist, using old prime
> Feb 21 09:23:34 host4 sshd[6451]: reverse mapping checking getaddrinfo for host4.my.own.domain failed - POSSIBLE BREAKIN ATTEMPT!
I can understand that a 34 second delay while logging in is annoying :)
/Stefan
Reply to: