Hey y'all,
I have a problem with mounting an NFS share when using the hostname. There is no problem to connect to the share, when I use the direct IP address. Establishing the connection via the hostname worked beforehand (and with beforehand I mean yesterday).
My system credentials are:
Operating System: Ubuntu 22.04.5 LTS
Kernel: Linux 5.15.0-125-generic
Here is the problem:
Using mount with a hostname
Code:
$ sudo mount -v -t nfs -o "user=myusername" hostname:nfs_share target
mount.nfs: mount(2): Operation not permitted
mount.nfs: trying aaa.bbb.ccc.ddd prog 100003 vers 3 prot TCP port 2049
mount.nfs: trying aaa.bbb.ccc.ddd prog 100005 vers 3 prot UDP port 300
mount.nfs: mount(2): No such file or directory
mount.nfs: Operation not permitted
mount.nfs: timeout set for Fri Nov 8 12:54:35 2024
mount.nfs: trying text-based options 'vers=4.2,addr=aaa.bbb.ccc.ddd,clientaddr=xxx.xxx.xxx.xxx'
mount.nfs: trying text-based options 'addr=aaa.bbb.ccc.ddd'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: prog 100005, trying vers=3, prot=17
Same command, but with an IP address.
Code:
$ sudo mount -v -t nfs -o "user=myusername" aaa.bbb.ccc.ddd:nfs_share target
mount.nfs: timeout set for Fri Nov 8 12:54:34 2024
mount.nfs: trying text-based options 'vers=4.2,addr=aaa.bbb.ccc.ddd,clientaddr=xxx.xxx.xxx.xxx
Additional infos: pinging the hostname works, nslookup works. I have no access to the server with the NFS share.
Does anyone have an idea where I should start to investigate?
Cheers,
Renato
Bookmarks