diff --git a/lib/tasks/whois.rake b/lib/tasks/whois.rake index bbec1f834..a1bca80cd 100644 --- a/lib/tasks/whois.rake +++ b/lib/tasks/whois.rake @@ -43,4 +43,9 @@ namespace :whois do end puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds" end + + desc 'Update whois status records for zones' + task update_status: :environment do + DNS::Zone.all.each(&:generate_data) + end end