mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 08:06:53 +08:00
fix trailing '.' whois <-> dig dichotomy
- whois records don't have trailing '.'; NS records do. Add trailing '.'
This commit is contained in:
@@ -22,7 +22,9 @@ check_domain(domain)
|
||||
puts "[PASS] #{domain} basic check ('DOMAIN' variable set & not empty)"
|
||||
|
||||
whois_nameservers = get_whois_nameservers(domain)
|
||||
#whois_nameservers = [ 'ns-aws.nono.com', 'ns-he.nono.com' ] # testing
|
||||
#whois_nameservers = [ 'ns-aws.nono.io', 'ns-he.nono.io', 'ns-gce.nono.io' ] # testing
|
||||
# whois records don't have trail '.'; NS records do; add trailing '.'
|
||||
whois_nameservers.map { |ns| ns << '.' }
|
||||
puts "[PASS] #{domain} has whois entry with nameservers #{whois_nameservers.join(", ")}"
|
||||
|
||||
whois_nameservers.each do |whois_nameserver|
|
||||
|
Reference in New Issue
Block a user