Domain Name System Nfs Not Allowing Hosts Specif
-
Teams
Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.
NFS not allowing hosts specified in config to mount share
Asked 3 years ago
Modified 3 years ago
Viewed 3k times
1
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!
asked Aug 14, 2021 at 7:52
](https://serverfault.com/users/798036/james)
113
11 silver badge
55 bronze badges
-
Is that your only export?
-
@MichaelHampton No, I have another export set up exactly like the one in the post.
– james
1 Answer
Sorted by:
1
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.
answered Aug 14, 2021 at 14:55
](https://serverfault.com/users/675696/user10489)
614
11 gold badge
44 silver badges
1414 bronze badges
-
It returns
Host not found: 3(NXDOMAIN). Which is weird, because if I explicitly specify host.domain.lan, it mounts just fine.– james
-
It’s not weird… it’s not even unusual. The name is registered for forward resolution but not reverse resolution. It has to be registered for both directions for this to work.
-
Works perfectly after setting up reverse DNS resolution. Thank you! For anyone reading this in the future, when setting up your PTR records, remember to use
host.domain.lan., nothost.domain.lan. Would have saved me hours knowing this.– james
You must log in to answer this question.
##
Not the answer you’re looking for? Browse other questions tagged
.
- The Overflow Blog
-
The creator of Jenkins discusses CI/CD and balancing business with open source
- Featured on Meta
- Bringing clarity to status tag usage on meta sites
Related
21exportfs: Warning: /home/user/share does not support NFS export
5Mounting NFSv4 share from Debian Linux 6 to Freebsd 9-RC3 “server requires stronger authentication”
1Ubuntu client can’t mount Nexenta NFS
5NFS issue: clients can mount shares as NFSv3 but not as NFSv4 – or how to debug NFS?
0NFS host is not exporting the “share”
1nfs mount fails due to same file handle
17mount.nfs: an incorrect mount option was specified
1Kubernetes can’t mount NFS volumes after NFS server update and reboot
Hot Network Questions
- How to Interpret Statistically Non-Significant Estimates and Rule Out Large Effects?
- What’s the benefit or drawback of being Small?
- Is it helpful to use a thicker gage wire for part of a long circuit run that could have higher loads?
- Star Trek: The Next Generation episode that talks about life and death
- Does it make sense for the governments of my world to genetically engineer soldiers?
Server Fault
Company
Stack Exchange Network
- Technology
- Culture & recreation
- Life & arts
- Science
- Professional
- Business
- API
- Blog
Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.4.14806