ECS:如何新增或移除 DNS 伺服器
Summary: 本文介紹如何修改 ECS DNS 組態。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
重要注意事項:ECS 功能嚴重依賴適當的 DNS 解析。如果 DNS 無法正常運作,可能會導致 資料無法使用 (DU) 狀態。
在變更 DNS 設定之前,請務必與客戶確認。
注意:xDoctor 4-8.104.0 及更新版本中發佈了一項新功能。現在,xDoctor 可自動執行此作業,以快速嘗試探索 xDoctor RAP075 錯誤的潛在原因。如果指令檔無法修正 xDoctor RAP075 錯誤,則會提供所發現錯誤的詳細摘要。
如需詳細資訊,請參閱文章 ECS:ObjectScale:如何執行 KB 自動化指令檔 (Auto Pilot) (需要以已註冊的 Dell 支援使用者身分登入才能檢視本文)。如果您無法升級到 xDoctor 4.8.104 或更新版本,請依照本文 的手冊章節 操作。
程序:
- 尋找機架的主節點:
命令:
# ssh master.rack
範例:
admin@ecsnode5:~> ssh master.rack admin@ecsnode1:~>
- 若要尋找 NAN IP,您可以使用警示中識別的 IP 或 getclusterinfo -i 中的 IP 作為您的目標,並使用此指令檔:
命令:
# getclusterinfo -i
範例:
admin@ecsnode1:~> getclusterinfo -i Registered Racks ================ Ip Address epoxy seg mac seg color seg id NAN Hostname =============== ===== ================= ========== ======= ============ 169.254.1.1 False 00:00:00:00:00:00 red 1 provo-red.nanlocal Node private Node Public BMC Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name =============== ====== ====== ================= =============== ================= =============== =============== ========= 192.168.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.101 169.254.1.1 provo-red 192.168.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.102 169.254.1.2 sandy-red 192.168.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.103 169.254.1.3 orem-red 192.168.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.104 169.254.1.4 ogden-red 192.168.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.105 169.254.1.5 layton-red 192.168.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.106 169.254.1.6 logan-red 192.168.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.107 169.254.1.7 lehi-red 192.168.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.108 169.254.1.8 murray-red Status: M - Master, S - Slave E - Epoxy I - Initializing, U - Updating, A - Active P - On, O - Off ! - Warning/Error list: 1 -(W) Hostname set to default hostname set by installer 169.254.2.1 False 00:00:00:00:00:00 green 2 tucson-green.nanlocal Node private Node Public BMC Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name =============== ====== ====== ================= =============== ================= =============== =============== ========= 192.168.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.101 169.254.2.1 provo-green 192.168.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.102 169.254.2.2 sandy-green 192.168.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.103 169.254.2.3 orem-rgreen 192.168.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.104 169.254.2.4 ogden-green 192.168.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.105 169.254.2.5 layton-green 192.168.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.106 169.254.2.6 logan-green 192.168.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.107 169.254.2.7 lehi-green 192.168.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.168.219.108 169.254.2.8 murray-green Status: M - Master, S - Slave E - Epoxy I - Initializing, U - Updating, A - Active P - On, O - Off ! - Warning/Error list: 1 -(W) Hostname set to default hostname set by installer
- 從具有 xDoctor 4-8.104.0 及更高版本的主節點執行自動化命令。 此自動化由功能表驅動,並在整個執行過程中執行驗證步驟。
注意:在添加新的 DNS 伺服器 IP 之前,會進行以下驗證:
-
- 驗證正向 DNS 查詢。
- 驗證反向 DNS 查詢。
- 驗證並顯示 DNS 查詢不相符。
命令:
# sudo xdoctor autopilot --kb 19614 --target-rack <rack color>
範例:(在此範例中,我們要處理的是機架 1)
admin@ecsnode1:~> sudo xdoctor autopilot --kb 19614 --target-rack red Using /etc/ansible/ansible.cfg as config file VERSION: 3.0 Playbook tasks: 66 Role tasks: 28 Total tasks: 94 across 1 host(s)
自動化指令檔選項:
- 選取您要執行的選項 新增 DNS 伺服器至組態或從組態移除 DNS 伺服器。
TASK [Ask user if they want to change DNS IP configuration or DNS search configuration] ********************************************************************************************************************** [Ask user if they want to change DNS IP configuration or DNS search configuration] ****************************************************************************** Please select one of the following options to change DNS IP or DNS search configuration: ****************************************************************************** (1) Change DNS IP configuration. (2) Change DNS search configuration. (0) Exit ******************************************************************************"
- 變更 DNS IP 組態。
TASK [Ask user if they want to add or remove a DNS server] *************************************************************************************************************************************************** [Ask user if they want to add or remove a DNS server] ****************************************************************************** Please select one of the following options to add or remove an DNS server: ****************************************************************************** (1) Add an DNS server to the configuration. (2) Remove an DNS server from the configuration. (0) Exit ****************************************************************************** :
-
- 變更 DNS IP 組態 ->(1) 將 DNS 伺服器新增至組態。
TASK [Ask for DNS server IP if adding] *********************************************************************************************************************************************************************** [Ask for DNS server IP if adding] ****************************************************************************** Enter the IP of the DNS server you want to add: ****************************************************************************** :
-
- 變更 DNS IP 組態
->(2) Remove an DNS server from the configuration
- 變更 DNS IP 組態
TASK [Prompt user to select DNS server to remove] ************************************************************************************************************************************************************ [Prompt user to select DNS server to remove] ******************************************************************************* Enter the letter of the DNS server you want to remove: ******************************************************************************* (0) Exit ******************************************************************************* :
- 變更 DNS 搜尋組態。
TASK [Ask user if they want to add or remove a DNS search domain] ******************************************************************************************************************************************** [Ask user if they want to add or remove a DNS search domain] ****************************************************************************** Please select one of the following options to add or remove an DNS search domain: ****************************************************************************** (1) Add a DNS search domain. (2) Remove a DNS search domain. (0) Exit ******************************************************************************
-
- 變更 DNS 搜尋組態。-> (1) 新增 DNS 搜尋網域。
TASK [Ask for DNS search domain if adding] ******************************************************************************************************************************************************************* [Ask for DNS search domain if adding] ****************************************************************************** Please enter the DNS search domain you want to add: ****************************************************************************** :
-
- 變更 DNS 搜尋組態。-> (2) 移除 DNS 搜尋網域
TASK [Prompt user to select DNS search domain to remove] ***************************************************************************************************************************************************** [Prompt user to select DNS search domain to remove] ****************************************************************************** Please select the DNS search domain you want to remove: ****************************************************************************** (a) xxxx.xxxx.com (0) Exit ****************************************************************************** :
手冊區段
如果指令檔失敗:
如何將 IP 和 DNSSearch 新增至 DNS 組態:
使用
setrackinfo -a 以設定 DNS 伺服器。對客戶網站的每個 DNS 伺服器重複此命令 (或以空格分隔)。
# sudo setrackinfo -a DNSServer <DNS_Server_IP> Example: # sudo setrackinfo -a DNSServer x.x.x.x # sudo setrackinfo -a DNSServer y.y.y.y or # sudo setrackinfo -a DNSServer x.x.x.x y.y.y.y使用
setrackinfo -a 以配置 DNS 搜尋。我們必須針對最具體到最不具體的每個規範順序運行一次命令。
# sudo setrackinfo -a DNSSearch <DNS_Search_Specification> Example: # sudo setrackinfo -a DNSSearch corp.dell.com # sudo setrackinfo -a DNSSearch dell.com
如何從 DNS 組態移除 IP:
使用
setrackinfo -d 從清單中移除一或多個 (適用於 DNSServer 或 DNSSearch)
Example: # sudo setrackinfo -d DNSServer x.x.x.x y.y.y.y
Additional Information
如需 NTP 組態,請參閱 KB ECS:如何新增或移除 NTP 伺服器。
Affected Products
ECS ApplianceProducts
ECS Appliance, Elastic Cloud StorageArticle Properties
Article Number: 000019614
Article Type: How To
Last Modified: 24 Jul 2025
Version: 8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.