public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Andreas Luengen <LUENGEN@de.ibm.com>
Cc: linux-nvme@lists.infradead.org
Subject: Re: hostname cannot be used for traddr?
Date: Thu, 19 Aug 2021 15:37:18 +0100	[thread overview]
Message-ID: <YR5sns2ib4BBI4Tb@infradead.org> (raw)
In-Reply-To: <OF6B2D5E85.F00AD733-ONC1258736.004F4A7C-C1258736.004F6E51@ibm.com>

On Thu, Aug 19, 2021 at 04:27:35PM +0200, Andreas Luengen wrote:
> Hi nvmetcli developers.
> 
> Following the NVMe specs I understand that it should be possible to use 
> host name or fully qualified domain name instead of an IP address in the 
> traddr field.
> Setting the host name works, but when I try to attach a device this fails. 
> Just changing the host name to a valid IP address and then attaching a 
> device works (see below).
> 
> May I  miss something or is this a bug?

Not a bug and you're not missing anything.  The kernel doesn't do
DNS lookups, so it need an ip address.  The only enhancement we could
do is to do the DNS lookup in the nvmetcli code, and then store the
resolved IP address in configfs for the kernel.


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

      reply	other threads:[~2021-08-19 14:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19 14:27 hostname cannot be used for traddr? Andreas Luengen
2021-08-19 14:37 ` Christoph Hellwig [this message]

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=YR5sns2ib4BBI4Tb@infradead.org \
    --to=hch@infradead.org \
    --cc=LUENGEN@de.ibm.com \
    --cc=linux-nvme@lists.infradead.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