hostname cannot be used for traddr?

Christoph Hellwig hch at infradead.org
Thu Aug 19 07:37:18 PDT 2021


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.




More information about the Linux-nvme mailing list