mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Merge pull request #2700 from internetee/update-whois-dns-zone-record
dns zone domain names whois handling
This commit is contained in:
commit
88b49561d2
2 changed files with 6 additions and 1 deletions
|
@ -34,7 +34,7 @@ module Zone::WhoisQueryable
|
||||||
def domain_vars
|
def domain_vars
|
||||||
{
|
{
|
||||||
disclaimer: Setting.registry_whois_disclaimer, name: origin,
|
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,
|
changed: updated_at.try(:to_s, :iso8601), email: Setting.registry_email,
|
||||||
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
|
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
|
||||||
nameservers: nameserver_vars, dnssec_keys: [],
|
nameservers: nameserver_vars, dnssec_keys: [],
|
||||||
|
|
|
@ -43,4 +43,9 @@ namespace :whois do
|
||||||
end
|
end
|
||||||
puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc 'Update whois status records for zones'
|
||||||
|
task update_zone_statuses: :environment do
|
||||||
|
DNS::Zone.all.each(&:generate_data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue