When mounting NFS to new host, often you add the hostname to export-policy just assuming NetApp will have no issue with name resolution. but it’s not a perfect world. Sometimes when name resolution doesn’t work, NFS mount will fail showing the message as below. Then scratching your head questioning why and trying many things for troubleshooting.
mount.nfs: access denied by server while mounting $hostname:/$path.
It is always best practice to validate hostname on NetApp side before adding the host to export-policy rule. That way, you ensure to cross off one possible reason to fail NFS mount. There is no such command nslookup on NetApp ONTAP. Instead, there are equivalent commands. See below. It has the exact same effect of running nslookup on Windows or Linux servers.
Name Resolution by Hostname
set diag getxxbyyy gethostbyname -node ontap-01 -vserver myvserver01 -hostname myhost01
Name Resolution by IP
set diag getxxbyyy gethostbyaddr -node ontap-01 -vserver myvserver01 -ipaddress 192.168.11.121