Skip to content

Commit

Permalink
Merge pull request #2700 from internetee/update-whois-dns-zone-record
Browse files Browse the repository at this point in the history
dns zone domain names whois handling
  • Loading branch information
vohmar authored Oct 21, 2024
2 parents be6ddd4 + d6586c7 commit 88b4956
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/zone/whois_queryable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def generate_json
def domain_vars
{
disclaimer: Setting.registry_whois_disclaimer, name: origin,
registered: created_at.try(:to_s, :iso8601), status: ['ok (paid and in zone)'],
registered: created_at.try(:to_s, :iso8601), status: ['Blocked'],
changed: updated_at.try(:to_s, :iso8601), email: Setting.registry_email,
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
nameservers: nameserver_vars, dnssec_keys: [],
Expand Down
5 changes: 5 additions & 0 deletions lib/tasks/whois.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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_zone_statuses: :environment do
DNS::Zone.all.each(&:generate_data)
end
end

0 comments on commit 88b4956

Please sign in to comment.