All of lore.kernel.org
 help / color / mirror / Atom feed
* NFSv4 referrals with FQDN.
@ 2021-03-23 21:56 Pradeep
  2021-03-24 19:20 ` Chuck Lever III
  0 siblings, 1 reply; 3+ messages in thread
From: Pradeep @ 2021-03-23 21:56 UTC (permalink / raw)
  To: Linux NFS Mailing List

Hello,

While testing NFSv4 referrals, I noticed that if the server name in FS
locations does not have IPv4 mapping (server name has AAAA record for
IPv6; but no A record in DNS), the referral mount fails. With debug
enabled, I get something like this:

 nfs_follow_referral: referral at /nfs_export_1
 nfs4_path: path server-1.domain.com:/nfs_export_1 from nfs_path
 nfs4_path: path component /nfs_export_1
 nfs4_validate_fspath: comparing path /nfs_export_1 with fsroot /nfs_export_1
 ==> dns_query((null),server-2.domain.com,19,(null))
 call request_key(,server-2.domain.com,)
 <== dns_query() = -126
 nfs_follow_referral: done
 nfs_do_refmount: done
 RPC:       shutting down nfs client for server-1.domain.com
 RPC:       rpc_release_client(ffff97fdf170c600)
 RPC:       destroying nfs client for server-1.domain.com
 <-- nfs_d_automount(): error -2

It looks like NFS client does an upcall to "/sbin/key.dns_resolver".
"/sbin/key.dns_resolver" works if callout info is set to 'ipv6'.
Otherwise it fails too.

Does this mean setups with only IPv6 records (AAAA records in DNS),
NFSv4 referrals won't work if server returns FQDN in referral? If
anyone has tried this and made it work, please let me know.

Thanks,
Pradeep

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-25 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 21:56 NFSv4 referrals with FQDN Pradeep
2021-03-24 19:20 ` Chuck Lever III
2021-03-25 17:03   ` Pradeep

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.