LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting cifs/nfs using DNS (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-cifs-nfs-using-dns-4175615488/)

trackstar2000 10-11-2017 06:14 PM

mounting cifs/nfs using DNS
 
Hello,

We have a NAS that has 2 logical interfaces. On my Linux machine (Centos), looking to mount CIFS/NFS using DNS.

So on my hosts file, I am placing two entries of the NAS IP interfaces (192.168.x.1 / 192.168.x.2). Can somebody confirm its ok?

192.168.x.1 nas
192.168.x.2 nas

Btw, our Windows DNS won't be updated for a while. We are migrating the application on the Linux side first.

Thanks,
TT

wpeckham 10-12-2017 04:56 AM

DNS is Domain Name Service, ir does translation from Domain Name to IP address. It does not do file sharing services. This makes your question confusing, at best.

Loading your hosts file does not put the results into DNS, it bypasses DNS and does local translation.
Normally, it is not advisable to put two addresses in your hosts table (or DNS tables for that matter) that resolve from the same name. Although we call it hostname for historical reasons, the address and name are really interface or node names and should generally resolve uniquely.

I hope that this helps clear some things up a bit.

jefro 10-12-2017 03:10 PM

My guess is that it will only point to the first entry.
Second that it doesn't make any sense. What are you trying to do by this?

Some nas devices have ways to assist in name resolution.

Of course we can mix FQDN and locally provided name resolution under a few methods.

One might fool arp to static to get even more confusing.


Anytime you make static hosts or arp you run a risk that you'll forget to ,,, well,, don't forget.

trackstar2000 10-24-2017 05:59 PM

Quote:

Originally Posted by jefro (Post 5769269)
My guess is that it will only point to the first entry.
Second that it doesn't make any sense. What are you trying to do by this?

Some nas devices have ways to assist in name resolution.

Of course we can mix FQDN and locally provided name resolution under a few methods.

One might fool arp to static to get even more confusing.


Anytime you make static hosts or arp you run a risk that you'll forget to ,,, well,, don't forget.

We are moving some shares over to production on the linux machines. We want to utilize the redundancy offered by the NAS (two controllers). We are not updating the Host A record on our DNS server (Microsoft) for another 2 months since the majority of the shares are CIFS which are not ready to be migrated.


I will just create a few new Host A record on the Windows DNS server and just use that.


All times are GMT -5. The time now is 05:58 AM.