Pages Health CheckDNS 配置检查
Pages Health Check 用于检查你 GitHub 网页常见的 DNS 配置问题。
基本用法:
> check = GitHubPages::HealthCheck.new("choosealicense.com") => #<GitHubPages::HealthCheck @domain="choosealicense.com" valid?=true>> check.valid? => true
一个无效的域名:
> check = GitHubPages::HealthCheck.new("foo.github.com")> check.valid? => false> check.valid! => GitHubPages::HealthCheck::InvalidCNAME
检索专项检查:
> check.should_be_a_record? => true> check.a_record? => true
评论