MyBook 1.00.16 firmware. NFS Unable to mount a resource using an hostname.
Hello,
I have purchased from less then one week MyBook 1Tb white edition. It is now updated to the 1.00.16 firmware and this is the version: Code:
[root@MyBookWorld etc]# uname -a The MyBook is part of a domestic LAN, behind a Netgear Router. I have registered it and I have assigned to it an host which dynamically manage the IP changes (I use dyndns service for it). After I have enabled the port forwarding for SSH and FTP I am able to use SSH and FTP using a reference to the host name during the connection. So far so god. Now I was able to enable to use even NFS but just when I use the local IP 192.168.1.3 of my domestic LAN. While when I try to use the host name I cannot do it. This is working: [CODE] mount -t nfs 192.168.1.3:/nfs/lorenzo /mnt/mybook [CODE] But this is not working [CODE] mount -t nfs myhost.dyndns.info:/nfs/lorenzo /mnt/mybook [CODE] Somebody knows which can be the issue? Thanks Lorenzo |
If you don't have a large number of clients, the easiest way is probably using the client device's local hosts file. This will make myhost.dyndns.info resolve as an IP address of your choice (which would be 192.168.1.3).
The file is likely /etc/hosts and the line you need to add is something like 192.168.1.3 myhost.dyndns.info |
Hello,
Thanks for your answer. I have tried to follow your suggestion but it still doesn't work: Here more info: Code:
[root@MyBookWorld ~]# more /etc/sysconfig/network Code:
[root@MyBookWorld ~]# more /etc/hosts |
Quote:
This way the client will resolve lollomb.dyndns.info as 192.168.1.3 and not the internet-routable address 79.97.201.94. Note that if this client device is brought outside of your LAN it will not work any more because the name always resolves as the internal address. BTW, I suggest you don't keep the NFS service open to the internet if it's not necessary. |
Hello, thanks for your answer.
This is work in my LAN. And if I would like make NFS service open to the Internet, how can I do then? Why have NFS open is it a bad idea? Maybe for security reason? Thanks Lorenzo |
Quote:
Quote:
|
Offering NFS V3 over the internet is not a good idea unless you are going through a VPN tunnel. NFS V4 can operate using a single TCP port so you could use an ssh tunnel.
I didn't know that MyBook's supported NFS. Isn't the .dyndns.info service for the WAN side of your router? You could use avanti (zeroconf) instead. Instead of using hostname, you use hostname.local. For a home network, I would recommend mapping IP <-> MAC addresses in the DHCP router so that your local IP addresses don't change. Then you can add each host to the /etc/hosts file and not have to worry about one computer getting a different address when it's lease runs out. You could have a computer that has the drive mounted accept ssh connections and use scp, sftp or konqueror's fish:/ protocol to transfer files with a remote connection. |
All times are GMT -5. The time now is 01:10 PM. |