Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
twoism committed Oct 13, 2011
0 parents commit 2b17cac
Show file tree
Hide file tree
Showing 43 changed files with 7,490 additions and 0 deletions.
112 changes: 112 additions & 0 deletions .specification
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
--- !ruby/object:Gem::Specification
name: net-dns
version: !ruby/object:Gem::Version
version: "0.4"
platform: ruby
authors:
- Marco Ceresa
autorequire:
bindir: bin
cert_chain:
date: 2007-05-12 00:00:00 -07:00
default_executable:
dependencies: []

description: A pure Ruby DNS library, similar to the Perl Net::DNS library
email: [email protected]
executables: []

extensions: []

extra_rdoc_files:
- README
- AUTHORS
- INSTALL
- THANKS
files:
- demo
- demo/check_soa.rb
- demo/threads.rb
- README
- setup.rb
- CHANGELOG
- gemspec
- Rakefile
- AUTHORS
- lib
- lib/net
- lib/net/dns
- lib/net/dns/names
- lib/net/dns/names/names.rb
- lib/net/dns/resolver
- lib/net/dns/resolver/timeouts.rb
- lib/net/dns/resolver/socks.rb
- lib/net/dns/resolver.rb
- lib/net/dns/dns.rb
- lib/net/dns/rr.rb
- lib/net/dns/question.rb
- lib/net/dns/header.rb
- lib/net/dns/packet.rb
- lib/net/dns/rr
- lib/net/dns/rr/null.rb
- lib/net/dns/rr/types.rb
- lib/net/dns/rr/hinfo.rb
- lib/net/dns/rr/mr.rb
- lib/net/dns/rr/soa.rb
- lib/net/dns/rr/mx.rb
- lib/net/dns/rr/txt.rb
- lib/net/dns/rr/cname.rb
- lib/net/dns/rr/a.rb
- lib/net/dns/rr/aaaa.rb
- lib/net/dns/rr/ns.rb
- lib/net/dns/rr/classes.rb
- lib/net/dns/rr/ptr.rb
- lib/net/dns/rr/srv.rb
- test
- test/net
- test/net/dns
- test/net/dns/test_packet.rb
- test/net/dns/test_rr.rb
- test/net/dns/resolver
- test/net/dns/resolver/test_timeouts.rb
- test/net/dns/test_header.rb
- test/net/dns/test_question.rb
- test/net/dns/rr
- test/net/dns/rr/test_types.rb
- test/net/dns/rr/test_ns.rb
- test/net/dns/rr/test_a.rb
- test/net/dns/rr/test_classes.rb
- THANKS
- INSTALL
has_rdoc: true
homepage: http://net-dns.rubyforge.org/
licenses: []

post_install_message:
rdoc_options: []

require_paths:
- bin
- bin
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - ">"
- !ruby/object:Gem::Version
version: 0.0.0
version:
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
requirements: []

rubyforge_project:
rubygems_version: 1.3.5
signing_key:
specification_version: 1
summary: Pure Ruby DNS library
test_files: []

10 changes: 10 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# $Id: AUTHORS,v 1.2 2005/06/17 10:09:57 bluemonk Exp $


AUTHORS

Net::DNS core developement:
Marco Ceresa <[email protected]>

Beta testing:

7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
net-dns 0.4
- many bug fixes (thanks guys!)
- a whole new class Net::DNS::Header::RCode
- new methods in Net::DNS::Resolver class to
do AXFR queries
- a new SRV resource record written by Dan Janowski
- more documentation written and corrected
8 changes: 8 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
If you didn't install this from gem, you can do a

# ruby setup.rb

or, from normal user (with sudo)

$ rake install

55 changes: 55 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Net::DNS README
============

This is a port of the Perl Net::DNS module, written by Michael Fuhr
and now currently maintained by Olaf Kolkman (www.net-dns.org). It
keeps the same interfaces and function names, although has a bit
improved OO and some other stuff.
It can be used to query DNS servers for various kind of records, perform
zone transfer and dynamic updates. It has even a class for acting as a
nameserver.
This version is quite incomplete. You can use it as a resolver.


Requirements
------------

* Ruby 1.6


Install
-------

De-compress archive and enter its top directory.
Then type:

($ su)
# ruby setup.rb

These simple step installs this program under the default
location of Ruby libraries. You can also install files into
your favorite directory by supplying setup.rb some options.
Try "ruby setup.rb --help".


Usage
-----

Have a look on the manual pages.
In doc/ you will find many useful documents too.


License
-------

Net::DNS is distributed under the same license Ruby is.


Author
------

See AUTHORS


# $Id: README,v 1.2 2005/06/17 15:11:18 bluemonk Exp $

83 changes: 83 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
require 'rake/clean'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/contrib/rubyforgepublisher'
require 'rake/gempackagetask'

require 'rubygems'

$VERSION = "0.4"

task :package => [:version, :clean]

desc "Library version"
task :version do
file = "lib/net/dns/dns.rb"
str = IO.readlines(file).to_s
offset = (str =~ /VERSION = "(.*)"/)
unless $1 == $VERSION
str.gsub!($1,$VERSION)
File.open(file,"w") do |out|
out << str
end
end
end


desc "Run the tests"
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/net/dns/**/test*.rb']
t.verbose = true
end

desc "Install the library"
task :install do
sh("sudo ruby setup.rb")
end

desc "Build documentation"
Rake::RDocTask.new do |rd|
rd.rdoc_files.include("lib/net/dns/**/*.rb")
rd.options << "-S"
end

#
# Gem specifications
#
SPEC = Gem::Specification.new do |s|
s.name = "net-dns"
s.version = "#$VERSION"
s.author = "Marco Ceresa"
s.email = "[email protected]"
s.homepage = "http://net-dns.rubyforge.org/"
s.platform = Gem::Platform::RUBY
s.summary = "Pure Ruby DNS library"
candidates = Dir.glob("**/*")
s.files = candidates.delete_if do |item|
item.include?("CVS") || item.include?("rdoc") || item.include?("pkg") || item.include?(".svn")
end
s.has_rdoc = true
s.extra_rdoc_files = ["README","AUTHORS","INSTALL", "THANKS"]
s.description = <<EOF
A pure Ruby DNS library, similar to the Perl Net::DNS library
EOF
end

#
# Build packages
#
desc "Build packages"
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end

#
# RubyForge publisher
#
desc "Upload project on RubyForge"
task :upload do
rubyforge = Rake::RubyForgePublisher.new("net-dns","bluemonk")
rubyforge.upload
end
24 changes: 24 additions & 0 deletions THANKS
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Many thanks to these wonderful people:

- Paul Barry for his excellent article on May07 issue of LinuxJournal, for the kind words and for bug reports
- Dan Janowski (and his SRV RR)
- Joshua Abraham
- Ben April
- Gene Rogers
- Nicholas Veeser
- Gildas Cherruel
- Alex Dalitz
- Cory Wright
- Nicolas Pugnant
- Andrea Peltrin
- Giovanni Corriga
- Luca Russo
- Pierguido Lambri
- Andrea Pampuri
- _koo_
- Oyku Gencay
- Eric Liedtke
- Justin Mercier
- Daniel Berger
and all #ruby-lang people

Loading

0 comments on commit 2b17cac

Please sign in to comment.