[HOW TO] Improvement DNS lookups (Linux)

Around two weeks ago, I checked handling the Linux system with Lynis. It recommended me improvement the DNS lookups

A long time ago, co-worker has improved the DNS local system, he said it will be improved the DNS operation. Linked them, I think this is a useful.

Nameservers are listed in /etc/resolv.conf, one per line

Example:
nameserver 10.10.5.130

To improve DNS lookups, add multiple DNS servers

Example:
nameserver 10.10.5.130
nameserver 10.10.5.131

And follow options below:
options rotate
options timeout:1

This will use both nameserver in rotation and wait max. 1 second for answer before trying the next one.

Hope this help.

Thank you for reading this article, please a comment if you are interested.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment