2022-04-09 16:08:15 +03:00
|
|
|
require "dns_update_job"
|
2022-04-09 13:59:36 +03:00
|
|
|
namespace :dns do
|
|
|
|
desc "Update own dyn dns records"
|
|
|
|
task update: :environment do
|
|
|
|
job = DnsUpdateJob.new
|
|
|
|
puts "My ip is #{job.my_ip}"
|
|
|
|
job.update_ip("gateway" , "hubfeenix.fi")
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|