[Linux] How to disable automatic update of /etc/resolv.conf file (Redhat)

Introduction

A note on how to disable automatic updates of the /etc/resolv.conf file

Environmental information

Disable automatic updates of the /etc/resolv.conf file

Edit NetworkManager configuration file

Configuration file: /etc/NetworkManager/NetworkManager.conf

Setting dns to none prevents the /etc/resolv.conf file from being updated automatically

[main]
plugins=ifcfg-rh
dns=none <=Add here

Restart NetworkManager

systemctl restart NetworkManager

Recommended Posts

[Linux] How to disable automatic update of /etc/resolv.conf file (Redhat)
[Linux] How to disable the automatic update of the /etc/resolv.conf file (AmazonLinux2)
How to output the output result of the Linux man command to a file
How to update php on Amazon linux 2
How to update security on CentOS Linux 8
How to update easy_install
How to update Spyder
[Blender] Summary of how to install / update / uninstall add-ons
How to update Python Tkinter to 8.6
Automatic update of Python module
[Linux] [C / C ++] Summary of how to get pid, ppid, tid
How to update with SQLAlchemy?
How to see the contents of the Jupyter notebook ipynb file
How to create an ISO file (CD image) on Linux
How to display a specified line of a file or command result on Linux (sed, awk)
How to display a specified column of files in Linux (awk)
How to implement Java code in the background of RedHat (LinuxONE)
How to update the python version of Cloud Shell on GCP
Summary of how to use pandas.DataFrame.loc
How to update Spyder in Anaconda
How to install wkhtmltopdf (Amazon Linux2)
Summary of how to use pyenv-virtualenv
How to install VMware-Tools on Linux
How to install MBDyn (Linux Ubuntu)
Efficient use of Linux file system
How to check Linux OS version
Summary of how to use csvkit
How to create a config file
[Image recognition] How to read the result of automatic annotation with VoTT
How to put a line number at the beginning of a CSV file
Verification of how to periodically execute a script on a Linux server on Windows
How to build my own Linux server
[Python] How to convert db file to csv
[Python] Summary of how to use pandas
[Linux] How to subdivide files and folders
How to install aws-session-manager-plugin on Manajro Linux
How to get rid of long comprehensions
How to check the version of Django
How to update to Chainer 2.0 (Windows + CUDA 8.0 + CUDNN)
How to update Google Sheets from Python
How to convert Python to an exe file
I want to know how LINUX works!
How to install CatBoost [as of January 2020]
How to manually update the AMP cache
[Linux] How to use the echo command
How to calculate Use% of df command
How to display emoji on Manjaro Linux
[Python2.7] Summary of how to use unittest
How to install Anisble on Amazon Linux 2
How to operate Linux from the console
How to install Windows Subsystem For Linux
How to power off Linux with Ultra96-V2
Jupyter Notebook Basics of how to use
Basics of PyTorch (1) -How to use Tensor-
Summary of how to use Python list
How to find large files on Linux
How to get started with laravel (Linux)
Summary of how to write AWS Lambda
[Question] How to use plot_surface of python
Find out how to divide a file with a certain number of lines evenly
How to access the contents of a Linux disk on a Mac (but read-only)