efault();
      configIndex = dnsConf.length;
      dnsConf[configIndex] = {...defaultDnsConf};

      // 创建新的option
      appendConfigToIndex(configIndex);

      document.getElementById("index").value = configIndex;
      showConf(configIndex);
    });

    // 重命名配置按钮被点击
    document.getElementById("renameBtn").addEventListener('click', e => {
      e.preventDefault();

      const newName = prompt(i18n("RenameHelp"));
      if (newName) {
        dnsConf[configIndex].Name = ne