Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

Linux DNS and NFS question

Hello,

We have few Linux servers and that has connected to 2-3 vlans and  that has NFS file system mounted from different server. For an example NFS server is registered with 192.168.10.x, that is where all the our production payload traffic goes. We would like to move NFS traffic to different Vlan like 172.10.10.X. Since many of them are using NFS servers, we don't want to change the DNS name, but I was planning to add new IP and hostname in the /etc/hosts file, so it would take local /etc/hosts entry rather than going through DNS.

Basically I want all the NFS traffic to be go through  172.10.10.X
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

we don't want to change the DNS name

why?
much easier to update 1 A record then to change hosts file on x number of servers every time you need to change something
though you still would need to touch each server to remove the mount and create the new mount on the new address and update fstab (if present).  either way better to use dns then managing hosts file on each system
Avatar of mokkan
mokkan

ASKER

We will keep the same DNS name, but  instead of getting IP for DNZ zone,  I want the host to get from /etc/host.  All the servers are mounted using  dnsname not the IP. Once we added the IPs and hostname in  /etc/hosts, once we mount which IP address would it take?
if you add the address in the hosts file, it will use that
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.