About domain verification
要在 GitHub 上验证域,您必须拥有组织中的所有者权限。 更多信息请参阅“组织的权限级别”。 您还需要访问权限以使用您的域托管服务修改域记录。
验证组织域的所有权后,将在组织的资料中显示“Verified(已验证)”徽章。 如果您的组织位于 GitHub Enterprise Cloud 上并且已同意公司服务条款,则组织所有者将能够通过查看验证域内每个成员的电子邮件地址来验证组织成员的身份。 更多信息请参阅“关于组织的资料页面”和“升级到公司服务条款”。
If your organization is owned by an enterprise account, a "Verified" badge will display on your organization's profile for any domains verified for the enterprise account, in addition to any domains verified for the organization. For more information, see "Verifying your enterprise account's domain."
To display a "Verified" badge, the website and email information shown on an organization's profile must match the verified domain or domains. 如果组织资料中显示的网站和电子邮件地址在不同的域中托管,则必须验证两个域。 If the website and email address use variants of the same domain, you must verify both variants. For example, if the profile shows the website www.example.com
and the email address info@example.com
, you would need to verify both www.example.com
and example.com
.
在 GitHub Enterprise Cloud 上,验证组织域的所有权后,您可以将组织的电子邮件通知限制为该域。 更多信息请参阅“将电子邮件通知限于经批准的域”。
验证组织的域
- 在 GitHub 的右上角,单击您的个人资料照片,然后单击 Your profile(您的个人资料)。
- 在您的个人资料页面左侧的“Organizations(组织)”下,单击组织的图标。
- 在组织名称下,单击 Settings(设置)。
- 在左侧边栏中,单击 Verified domains(已验证的域名)。
- 单击 Add a domain(添加域)。
- 在域字段中,输入您想要验证的域,然后单击 Add domain(添加域)。
- 按照 Add a DNS TXT record(添加 DNS TXT 记录)下的说明操作,使用您的域托管服务创建 DNS TXT 记录。
- Wait for your DNS configuration to change, which may take up to 72 hours. You can confirm your DNS configuration has changed by running the
dig
command on the command line, replacingORGANIZATION
with the name of your organization andexample.com
with the domain you'd like to verify. 您应看到命令输出中列出的新 TXT 记录。$ dig _github-challenge-ORGANIZATION.example.com +nostats +nocomments +nocmd TXT
- 确认您的 TXT 记录添加到 DNS 后,导航到组织设置中的 Verified domains(已验证的域)选项卡。 您可以按照上面的步骤 1 至 4 操作找到 Verified domains(已验证的域)选项卡。
- To the right of the domain that's pending verification, click , then click Continue verifying.
- 单击 Verify domain(验证域)。
- (可选)组织的资料页面中显示“Verified(已验证)”徽章后,您可以从域托管服务的 DNS 记录中删除 TXT 条目。