はじめに
本ドキュメントでは、初期設定完了後の CMX で DNS Server の IP Address のみ変更したい場合の設定方法を記載しています。
※ 以下の環境で確認をした動作例となります
CMX Hardware : Virtual Appliance
CMX Software : 10.6.3.70
DNS の IP Address の変更方法
初期設定後に DNS の IP Address を変更するには, cmxos reconfigure コマンドを利用します。
CMX の IP Address などの設定項目も含まれますが、変更が必要な DNS IP Address 以外は何も入力をせずに Enter で先に進みます。
[cmxadmin@kCMX-10-6-2 ~]$ cmxos reconfigure
This command will wipe all system metrics data when the configuration is changed
Do you want to continue?: yes << yes を入力
Please enter hostname [kCMX-10-6-2]: << Enter
Please enter IP address [172.22.4.91]: << Enter
Please enter netmask [255.255.255.0]: << Enter
Please enter gateway [172.22.4.254]: << Enter
Please enter DNS server [172.22.4.56]: 172.22.4.199 << 変更したい DNS の IP Address を入力
Please enter search domain name [kumatsum.com]: << Enter
Are the network settings correct?: yes << yes を入力
********************************************************************************
Configuring Timezone and date... << Timezone や NTP の設定については変更がない場合も改めて選択が必要になります。
********************************************************************************
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
(省略)
** CMX will be rebooted automatically now to apply the changes
Rebooting. << 設定反映のため CMX の再起動がされます
変更結果が反映されているかを、cat /etc/resolv.conf で確認します
[cmxadmin@kCMX-10-6-2 ~]$ cat /etc/resolv.conf
# Added by 'cmxos configure'
# Do not change manually
nameserver 127.0.0.1
nameserver 172.22.4.199 << 変更後の IP が反映されています
search kumatsum.com