修改單一 StorageGRID 節點的 DNS 組態
${post_edited_translations.segment}
一般而言,您應在 Grid Manager 中使用 Maintenance > Network > DNS servers 選項來設定 DNS 伺服器。只有在需要為不同的網格節點使用不同的 DNS 伺服器時,才使用下列指令碼。
-
預設情況下,外部 SSH 存取會遭到封鎖。如有需要,"暫時允許存取"。
-
${post_edited_translations.segment}
-
輸入以下命令:
ssh admin@primary_Admin_Node_IP -
請輸入 `Passwords.txt`檔案中列出的密碼。
-
輸入以下命令以切換至根目錄:
su - -
請輸入 `Passwords.txt`檔案中列出的密碼。
當您以根目錄身分登入時,提示符號會從
$`變為 `#。 -
將 SSH 私密金鑰新增至 SSH 代理程式。輸入:
ssh-add -
輸入 `Passwords.txt`檔案中列出的 SSH 存取密碼。
-
-
執行 DNS 設定指令碼:
setup_resolv.rb.${post_edited_translations.segment}
Tool to modify external name servers available commands: add search <domain> add a specified domain to search list e.g.> add search netapp.com remove search <domain> remove a specified domain from list e.g.> remove search netapp.com add nameserver <ip> add a specified IP address to the name server list e.g.> add nameserver 192.0.2.65 remove nameserver <ip> remove a specified IP address from list e.g.> remove nameserver 192.0.2.65 remove nameserver all remove all nameservers from list save write configuration to disk and quit abort quit without saving changes help display this help message Current list of name servers: 192.0.2.64 Name servers inherited from global DNS configuration: 192.0.2.126 192.0.2.127 Current list of search entries: netapp.com Enter command [`add search <domain>|remove search <domain>|add nameserver <ip>`] [`remove nameserver <ip>|remove nameserver all|save|abort|help`] -
新增為您的網路提供網域名稱服務的伺服器 IPv4 位址:
add <nameserver IP_address> -
重複該 `add nameserver`命令以新增名稱伺服器。
-
${post_edited_translations.segment}
-
儲存您的變更並結束應用程式:
save -
針對每個網格節點,重複步驟 ${post_edited_translations.segment} 至 關閉命令 Shell。
-
當您不再需要無密碼存取其他伺服器時,請從 SSH 代理程式中移除私密金鑰。輸入:
ssh-add -D -
如果您已允許外部 SSH 存取,"區塊存取"當您完成 DNS 組態修改後。