Hi,

This is a bit of Ruby and a bit of Linux, but because I'm working on
this in a Rails environment, I've decided to post it here.

I use the net-dns gem to make SOA queries like the following:

def query_domain(domain)
  require 'Net/DNS'
  res   = Net::DNS::Resolver.new
  result = res.query(domain, 'SOA')
  return result.answer
end

This works fine and I'm happy with the results. However, this is part
of a server management setup that changes values in certain
nameservers. We also want to monitor these changes, but most of these
nameservers have a TTL of 4 hours for their domains. We can't have the
system wait for 4 hours before checking whether the procedure worked,
so I need a way to get the server at the other end to return the
result again, just a few seconds later. Is this possible? Is there a
way to make the queried DNS flush the results and request them again?

Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to