0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ProxmoxでDNS設定の書き換えを防止する

Last updated at Posted at 2025-05-03

背景

ProxmoxでDNS設定はGUIから設定できる

image.png
しかし、ノード(画像ではn100)を再起動すると上書きされてしまう
image.png

毎回勝手に書き換えられることを防ぐためにメモとして防止策を記載する
なお、chownなどでリードオンリーにしても書き変わるのでこの手順が必要

方法

書き込み防止
chattr +i /etc/resolv.conf

これを実施すると画面上からの編集は当然できなくなる
image.png

書き込み防止解除
chattr -i /etc/resolv.conf

設定の流れ

書き込み防止解除 → /etc/resolv.confを編集 → 書き込み防止

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?