Can I disable DNS for NFS?

We have 3 virtual machine server machines that mount virtual machines from 2 other storage systems. We mount virtual machines from storage servers to have less data to move when moving virtual machines (pause on one server, install on a new server, fail) and facilitate snapshots and backups.

We were in the middle of an extended blackout due to storms (the OPS team forgot to check that we have fuel in the generator, and do not check it weekly tsk, tsk), so we close everything.

After refueling the generator, we started to lift everything. A big problem.

For NFS to mount the storage, NFS wants to perform a reverse DNS lookup, but the DNS server is a virtual machine that cannot start until the storage is mounted by NFS!

We copied the DNS server virtual machine to one of the VM servers locally and started it so that we could bring everything.

We would like to start NFS without reverse lookup (everything on our internal network), but cannot find out how to disable it.

Any help is appreciated

+3
source share
4 answers

Put the IP address of the NFS clients in /etc/hoststhe NFS server file with a comment like:

# 2009-04-17 Workaround a chicken and egg DNS resolution problem at boot
192.0.2.1 mynfsclient
192.0.2.2 anothernfsclient

Then add in your workbook, "When changing the IP addresses of a machine, be sure to update the NFS server hosts file."

, DNS NFS, . , , .

+1

NAS - DNS/DHCP, .

NAS/etc/hosts IP- . IP- - IP- mountd .

( - , Linux NAS NFS: "DNS forward lookup " )

+1

ip- fstab, dns .

0

This is NFS v4, the problem is that all access requests use reverse DNS lookups to determine the NFS domain for access / security purposes.

I think you can stop this behavior by putting a line in / etc / default / nfs containing:

NFSMAPID_DOMAIN=jrandom.dns.domain.com

This should be consistent with all systems that share NFS from each other. See Configuring NFSMAPID_DOMAIN , which is at the end of the page, for an explanation of what happens when it is not installed.

NFSv4 is more fun than a weasel bag.

0
source

Source: https://habr.com/ru/post/1706495/


All Articles