LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2017, 06:14 PM   #1
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Rep: Reputation: Disabled
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
 
Old 10-12-2017, 04:56 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,664

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
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.
 
Old 10-12-2017, 03:10 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
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.
 
Old 10-24-2017, 05:59 PM   #4
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
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.

Last edited by trackstar2000; 10-24-2017 at 06:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[B]RHEL & CENTOS: What is the best practice for mounting NFS/CIFS/DISKS[/B] person_of_interest Linux - Newbie 1 02-22-2015 08:16 AM
Issues mounting DNS-323 on Centos machine using nfs swerth Linux - Newbie 3 11-18-2014 03:19 PM
Share CIFS mount as NFS pppdddrrr Linux - Server 5 04-11-2013 05:34 AM
Problems mounting Netgear NAS drive with CIFS, NFS. Cenobite Linux - Networking 1 07-07-2010 01:52 AM
NFS vs. CIFS TL_CLD Slackware 5 07-16-2008 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration