Skip to main content

  1. Log in
  2. Sign up

Server Fault

    1. Home
    2. Questions
    3. Tags

    4. Users
    5. Jobs
    6. Companies
    7. Unanswered
  1. Teams

    Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.

    Learn more Explore Teams

NFS not allowing hosts specified in config to mount share

Ask Question

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!

Share

Improve this question

asked Aug 14, 2021 at 7:52

](https://serverfault.com/users/798036/james)

james

113

11 silver badge

55 bronze badges

Add a comment

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.

Share

Improve this answer

answered Aug 14, 2021 at 14:55

](https://serverfault.com/users/675696/user10489)

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

    Commented Aug 14, 2021 at 16:05

  • 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.

    – user10489

    Commented Aug 14, 2021 at 19:05

  • 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., not host.domain.lan. Would have saved me hours knowing this.

    – james

    Commented Aug 14, 2021 at 19:52

Add a comment

You must log in to answer this question.

##

Not the answer you’re looking for? Browse other questions tagged

.

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”

4NFS. Non-root mount requests

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

more hot questions

Question feed

Server Fault
Company
Stack Exchange Network

Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2024.9.4.14806

Updated: