Permalink
Browse files

Check www.{host} for provider information

  • Loading branch information...
1 parent 63b3843 commit 2c6fc04fbed6243d7078317f7289d771d20b55d7 @sean-lynch sean-lynch committed Apr 24, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/domain-profiler/information.rb
View
3 lib/domain-profiler/information.rb
@@ -21,8 +21,9 @@ def fetch(host)
data[:version] = version
status "Fetching data for #{host}: DNS "
+ extended_host = "www." + host
dnsopt = '+noadditional +noauthority'
- data[:dns] = `server=#{dns_server}; host=#{host}; dig @$server ns $host #{dnsopt}; dig @$server a $host #{dnsopt}; dig @$server mx $host #{dnsopt}; dig @$server txt $host #{dnsopt}`
+ data[:dns] = `server=#{dns_server}; host=#{host}; dig @$server ns $host #{dnsopt}; dig @$server a $host #{dnsopt}; dig @$server a #{extended_host} #{dnsopt}; dig @$server mx $host #{dnsopt}; dig @$server txt $host #{dnsopt}`
status 'Whois '
data[:whois] = `sleep 2; whois 'domain #{host}'`

0 comments on commit 2c6fc04

Please sign in to comment.