Change DNS script for CentOS
English Version: When you need to change the DNS on CentOS, Rocky Linux, RHEL, or similar operating systems, you can use the following script: #!/bin/bash FILE="/etc/resolv.conf" if ; then sed…
English Version: When you need to change the DNS on CentOS, Rocky Linux, RHEL, or similar operating systems, you can use the following script: #!/bin/bash FILE="/etc/resolv.conf" if ; then sed…