问题原文
原帖链接 · james · CC BY-SA 4.0
I am having an issue where NFS is refusing to allow hosts that are specified in the config file to mount the share.
I am running an NFS server on Debian 10, BTRFS filesystem.
my /etc/exports reads:
/share 192.220.189.0/24(rw,sync,no_subtree_check) *.domain.lan(rw,sync,no_subtree_check)
I am trying to mount from host.domain.lan, but when I try to mount the share I get the following:
mount.nfs: access denied by server while mounting server.domain.lan:/share
The server log reads:
rpc.mountd[PID]: refused mount request from <host.domain.lan's ip> for /share (/share): unmatched host
I have verified that the server can resolve host.domain.lan's hostname courtesy of a local DNS server.
The mounting DOES work if I explicitly specify host.domain.lan in /etc/exports as opposed to *.domain.lan. This will not do however as I want to serve the folder to an entire subdomain of FQDNs.
I can find nothing about this online, and I have exhausted every option I can think of, please help!
已采纳解答
原帖链接 · user10489 · CC BY-SA 4.0
Likely the domain name is not resolving correctly in DNS.
What do you get if you use the host command on the server to try to resolve the client's ip address to a hostname? DNS may not have the correct reverse mapping set up for this to work.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
