public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Philipp <lists@binarywings.net>
To: Gentoo User List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] SSH UseDNS without IPv6?
Date: Sat, 09 Feb 2013 19:22:38 +0100	[thread overview]
Message-ID: <511693EE.1060606@binarywings.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

Hi list!

I have an issue with SSH. It's a variation of the old "Set 'UseDNS no'
to avoid delays with faulty DNS records" theme.

Following setup:
1. I have a server with IPv6 compiled into the SSH daemon but no actual
IPv6 network interface.

2. The SSH client has no IPv6, neither compiled nor active.

3. The DNS server doesn't serve or support AAAA records. Apparently it
drops all such requests. All other records for IP and reverse lookup are
correct.

Now I'm experiencing the classic, very long delay when connecting to the
server via SSH because it does DNS lookups. When I look at wireshark
dumps, I see correctly served A and reverse lookups but the server also
insists on doing AAAA requests which time out.

I tried limiting the sshd "AddressFamily" to inet (aka IPv4) but this
didn't change anything. Is there another workaround or do I really have
to deactivate DNS lookups?

Thanks in advance!
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

             reply	other threads:[~2013-02-09 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-09 18:22 Florian Philipp [this message]
2013-02-09 19:58 ` [gentoo-user] SSH UseDNS without IPv6? Alan McKinnon
2013-02-10 11:56   ` Florian Philipp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=511693EE.1060606@binarywings.net \
    --to=lists@binarywings.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox