rubydns 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/bin/rd-dns-check CHANGED
@@ -1,19 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
3
- #
4
- # This program is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or
7
- # (at your option) any later version.
2
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
8
3
  #
9
- # This program is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- # GNU General Public License for more details.
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
13
10
  #
14
- # You should have received a copy of the GNU General Public License
15
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
-
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
17
21
 
18
22
  # Pulls down DNS data from old-dns
19
23
  # rd-dns-check -s old-dns.mydomain.com -d mydomain.com. -f old-dns.yml
@@ -361,7 +365,7 @@ ARGV.options do |o|
361
365
  o.separator "Help and Copyright information"
362
366
 
363
367
  o.on_tail("--copy", "Display copyright information") {
364
- puts "#{script_name}. Copyright (c) 2008 Samuel Williams. Released under the GPLv3."
368
+ puts "#{script_name}. Copyright (c) 2009, 2011 Samuel Williams. Released under the MIT license."
365
369
  puts "See http://www.oriontransfer.co.nz/ for more information."
366
370
  exit
367
371
  }
data/bin/rd-resolve-test CHANGED
@@ -1,18 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
3
- #
4
- # This program is free software: you can redistribute it and/or modify
5
- # it under the terms of the GNU General Public License as published by
6
- # the Free Software Foundation, either version 3 of the License, or
7
- # (at your option) any later version.
2
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
8
3
  #
9
- # This program is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- # GNU General Public License for more details.
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
13
10
  #
14
- # You should have received a copy of the GNU General Public License
15
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
16
21
 
17
22
  require 'rubydns/version'
18
23
 
@@ -50,7 +55,7 @@ ARGV.options do |o|
50
55
  end
51
56
 
52
57
  o.on_tail("--copy", "Display copyright information") do
53
- puts "#{script_name} v#{RubyDNS::VERSION::STRING}. Copyright (c) 2009 Samuel Williams. Released under the GPLv3."
58
+ puts "#{script_name} v#{RubyDNS::VERSION::STRING}. Copyright (c) 2009, 2011 Samuel Williams. Released under the MIT license."
54
59
  puts "See http://www.oriontransfer.co.nz/ for more information."
55
60
 
56
61
  exit
@@ -1,3 +1,22 @@
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
1
20
 
2
21
  require 'stringio'
3
22
 
@@ -1,3 +1,22 @@
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
9
+ #
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
1
20
 
2
21
  require 'eventmachine'
3
22
  require 'stringio'
@@ -1,20 +1,22 @@
1
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
7
2
  #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
12
9
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
-
16
- # Resolv rdoc
17
- # http://www.ruby-doc.org/stdlib/libdoc/resolv/rdoc/index.html
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
18
20
 
19
21
  require 'resolv'
20
22
 
@@ -1,17 +1,22 @@
1
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
7
2
  #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
12
9
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
15
20
 
16
21
  require 'rubydns/transaction'
17
22
 
@@ -1,17 +1,22 @@
1
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
7
2
  #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
12
9
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
15
20
 
16
21
  module RubyDNS
17
22
 
@@ -214,7 +219,7 @@ module RubyDNS
214
219
  options[:name] ||= @question.to_s + "."
215
220
 
216
221
  resources.each do |resource|
217
- @server.logger.info "add_answer: #{resource.inspect} #{resource.class::TypeValue} #{resource.class::ClassValue}"
222
+ @server.logger.debug "add_answer: #{resource.inspect} #{resource.class::TypeValue} #{resource.class::ClassValue}"
218
223
  @answer.add_answer(options[:name], options[:ttl], resource)
219
224
  end
220
225
 
@@ -1,23 +1,28 @@
1
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
7
2
  #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
12
9
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
15
20
 
16
21
  module RubyDNS
17
22
  module VERSION #:nodoc:
18
23
  MAJOR = 0
19
24
  MINOR = 3
20
- TINY = 3
25
+ TINY = 4
21
26
 
22
27
  STRING = [MAJOR, MINOR, TINY].join('.')
23
28
  end
data/lib/rubydns.rb CHANGED
@@ -1,20 +1,22 @@
1
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
1
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
7
2
  #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
3
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ # of this software and associated documentation files (the "Software"), to deal
5
+ # in the Software without restriction, including without limitation the rights
6
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ # copies of the Software, and to permit persons to whom the Software is
8
+ # furnished to do so, subject to the following conditions:
12
9
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
-
16
- # Thanks to "jmorgan" who provided some basic ideas for how to do this
17
- # using Ruby: http://half-penny.org/computing/simple-ruby-dns-server
10
+ # The above copyright notice and this permission notice shall be included in
11
+ # all copies or substantial portions of the Software.
12
+ #
13
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ # THE SOFTWARE.
18
20
 
19
21
  require 'rubydns/version'
20
22
  require 'rubydns/resolv'
data/test/daemon1.rb CHANGED
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
3
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
9
4
  #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
14
11
  #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
17
22
 
18
23
  require 'rubygems'
19
24
 
data/test/daemon2.rb CHANGED
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
3
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
9
4
  #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
14
11
  #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
17
22
 
18
23
  require 'rubygems'
19
24
 
data/test/example1.rb CHANGED
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
3
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
9
4
  #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
14
11
  #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
17
22
 
18
23
  require 'rubygems'
19
24
  require 'rubydns'
data/test/fortune-dns.rb CHANGED
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
3
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
9
4
  #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
14
11
  #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
17
22
 
18
23
  require 'rubygems'
19
24
 
@@ -4298,3 +4298,171 @@ D, [2011-04-20T14:35:29.283891 #1104] DEBUG -- : Checking rule [/stats.fortune/,
4298
4298
  D, [2011-04-20T14:35:29.283937 #1104] DEBUG -- : Resource type TXT matched
4299
4299
  D, [2011-04-20T14:35:29.283984 #1104] DEBUG -- : Query _xmppconnect.gmail.com failed to match against (?-mix:stats.fortune)
4300
4300
  D, [2011-04-20T14:35:29.284034 #1104] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4301
+ === Error Log Opened @ Thu Jan 12 12:15:21 +1300 2012 ===
4302
+ I, [2012-01-12T12:15:21.509158 #81909] INFO -- : Starting server...
4303
+ I, [2012-01-12T12:15:21.509870 #81909] INFO -- : Listening on udp:0.0.0.0:53
4304
+ I, [2012-01-12T12:15:21.510740 #81909] INFO -- : Listening on tcp:0.0.0.0:53
4305
+ D, [2012-01-12T12:15:56.156826 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4306
+ D, [2012-01-12T12:15:56.200493 #81909] DEBUG -- : Searching for fortune A
4307
+ D, [2012-01-12T12:15:56.200666 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4308
+ D, [2012-01-12T12:15:56.200767 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4309
+ D, [2012-01-12T12:15:56.200874 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4310
+ D, [2012-01-12T12:15:56.201052 #81909] DEBUG -- : Writing response to client (25 bytes)
4311
+ D, [2012-01-12T12:16:05.172346 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4312
+ D, [2012-01-12T12:16:05.173407 #81909] DEBUG -- : Searching for fortune CNAME
4313
+ D, [2012-01-12T12:16:05.173515 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4314
+ D, [2012-01-12T12:16:05.173623 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4315
+ D, [2012-01-12T12:16:05.173725 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4316
+ D, [2012-01-12T12:16:05.173827 #81909] DEBUG -- : Resource type CNAME matched ["CNAME"]
4317
+ D, [2012-01-12T12:16:05.173961 #81909] DEBUG -- : Query fortune matched (?-mix:fortune) with result #<MatchData "fortune">
4318
+ I, [2012-01-12T12:16:05.179471 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
4319
+ I, [2012-01-12T12:16:05.179699 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x102b1f870 @name=#<Resolv::DNS::Name: d41d8cd98f00b204e9800998ecf8427e.fortune>>
4320
+ D, [2012-01-12T12:16:05.180022 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x102b1f870 @name=#<Resolv::DNS::Name: d41d8cd98f00b204e9800998ecf8427e.fortune>> 5 1
4321
+ D, [2012-01-12T12:16:05.180303 #81909] DEBUG -- : Rule returned successfully
4322
+ D, [2012-01-12T12:16:05.180515 #81909] DEBUG -- : Writing response to client (72 bytes)
4323
+ D, [2012-01-12T12:16:24.590720 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4324
+ D, [2012-01-12T12:16:24.599702 #81909] DEBUG -- : Searching for fortune A
4325
+ D, [2012-01-12T12:16:24.599834 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4326
+ D, [2012-01-12T12:16:24.599943 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4327
+ D, [2012-01-12T12:16:24.600051 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4328
+ D, [2012-01-12T12:16:24.600204 #81909] DEBUG -- : Writing response to client (25 bytes)
4329
+ D, [2012-01-12T12:16:25.601280 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4330
+ D, [2012-01-12T12:16:25.601671 #81909] DEBUG -- : Searching for d41d8cd98f00b204e9800998ecf8427e.fortune A
4331
+ D, [2012-01-12T12:16:25.601774 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4332
+ D, [2012-01-12T12:16:25.601866 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4333
+ D, [2012-01-12T12:16:25.601960 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4334
+ D, [2012-01-12T12:16:25.602109 #81909] DEBUG -- : Writing response to client (58 bytes)
4335
+ D, [2012-01-12T12:16:36.889830 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4336
+ D, [2012-01-12T12:16:36.890283 #81909] DEBUG -- : Searching for fortune A
4337
+ D, [2012-01-12T12:16:36.890387 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4338
+ D, [2012-01-12T12:16:36.890488 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4339
+ D, [2012-01-12T12:16:36.890584 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4340
+ D, [2012-01-12T12:16:36.890740 #81909] DEBUG -- : Writing response to client (25 bytes)
4341
+ D, [2012-01-12T12:16:37.891447 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4342
+ D, [2012-01-12T12:16:37.891911 #81909] DEBUG -- : Searching for d41d8cd98f00b204e9800998ecf8427e.fortune TXT
4343
+ D, [2012-01-12T12:16:37.892014 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4344
+ D, [2012-01-12T12:16:37.892110 #81909] DEBUG -- : Resource type TXT matched
4345
+ D, [2012-01-12T12:16:37.892226 #81909] DEBUG -- : Query d41d8cd98f00b204e9800998ecf8427e.fortune matched (?-mix:(.*)\.fortune) with result #<MatchData "d41d8cd98f00b204e9800998ecf8427e.fortune" 1:"d41d8cd98f00b204e9800998ecf8427e">
4346
+ I, [2012-01-12T12:16:37.892341 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::TXT
4347
+ I, [2012-01-12T12:16:37.892448 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::TXT:0x102b0f970 @strings=[""]>
4348
+ D, [2012-01-12T12:16:37.892555 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::TXT:0x102b0f970 @strings=[""]> 16 1
4349
+ D, [2012-01-12T12:16:37.892737 #81909] DEBUG -- : Rule returned successfully
4350
+ D, [2012-01-12T12:16:37.892892 #81909] DEBUG -- : Writing response to client (71 bytes)
4351
+ D, [2012-01-12T12:17:11.160288 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4352
+ D, [2012-01-12T12:17:11.160662 #81909] DEBUG -- : Searching for fortune TXT
4353
+ D, [2012-01-12T12:17:11.160795 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4354
+ D, [2012-01-12T12:17:11.160920 #81909] DEBUG -- : Resource type TXT matched
4355
+ D, [2012-01-12T12:17:11.161111 #81909] DEBUG -- : Query fortune failed to match against (?-mix:(.*)\.fortune)
4356
+ D, [2012-01-12T12:17:11.161217 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4357
+ D, [2012-01-12T12:17:11.161346 #81909] DEBUG -- : Resource type TXT matched
4358
+ D, [2012-01-12T12:17:11.161442 #81909] DEBUG -- : Query fortune failed to match against (?-mix:stats.fortune)
4359
+ D, [2012-01-12T12:17:11.161535 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4360
+ D, [2012-01-12T12:17:11.161677 #81909] DEBUG -- : Writing response to client (25 bytes)
4361
+ D, [2012-01-12T12:22:20.565337 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4362
+ D, [2012-01-12T12:22:20.567260 #81909] DEBUG -- : Searching for fortune TXT
4363
+ D, [2012-01-12T12:22:20.567411 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4364
+ D, [2012-01-12T12:22:20.567564 #81909] DEBUG -- : Resource type TXT matched
4365
+ D, [2012-01-12T12:22:20.567704 #81909] DEBUG -- : Query fortune failed to match against (?-mix:(.*)\.fortune)
4366
+ D, [2012-01-12T12:22:20.567827 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4367
+ D, [2012-01-12T12:22:20.567928 #81909] DEBUG -- : Resource type TXT matched
4368
+ D, [2012-01-12T12:22:20.568027 #81909] DEBUG -- : Query fortune failed to match against (?-mix:stats.fortune)
4369
+ D, [2012-01-12T12:22:20.568138 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4370
+ D, [2012-01-12T12:22:20.568289 #81909] DEBUG -- : Writing response to client (25 bytes)
4371
+ D, [2012-01-12T12:22:27.061998 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4372
+ D, [2012-01-12T12:22:27.062320 #81909] DEBUG -- : Searching for fortune A
4373
+ D, [2012-01-12T12:22:27.062423 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4374
+ D, [2012-01-12T12:22:27.062521 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4375
+ D, [2012-01-12T12:22:27.062619 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4376
+ D, [2012-01-12T12:22:27.062780 #81909] DEBUG -- : Writing response to client (25 bytes)
4377
+ D, [2012-01-12T12:23:08.554819 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4378
+ D, [2012-01-12T12:23:08.555120 #81909] DEBUG -- : Searching for fortune CNAME
4379
+ D, [2012-01-12T12:23:08.555230 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4380
+ D, [2012-01-12T12:23:08.555330 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4381
+ D, [2012-01-12T12:23:08.555431 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4382
+ D, [2012-01-12T12:23:08.555525 #81909] DEBUG -- : Resource type CNAME matched ["CNAME"]
4383
+ D, [2012-01-12T12:23:08.555625 #81909] DEBUG -- : Query fortune matched (?-mix:fortune) with result #<MatchData "fortune">
4384
+ I, [2012-01-12T12:23:08.599208 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
4385
+ I, [2012-01-12T12:23:08.599672 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x102b055d8 @name=#<Resolv::DNS::Name: aa534255a924fc75626982d58143ae87.fortune>>
4386
+ D, [2012-01-12T12:23:08.599814 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x102b055d8 @name=#<Resolv::DNS::Name: aa534255a924fc75626982d58143ae87.fortune>> 5 1
4387
+ D, [2012-01-12T12:23:08.600072 #81909] DEBUG -- : Rule returned successfully
4388
+ D, [2012-01-12T12:23:08.600256 #81909] DEBUG -- : Writing response to client (72 bytes)
4389
+ D, [2012-01-12T12:23:18.137640 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4390
+ D, [2012-01-12T12:23:18.137924 #81909] DEBUG -- : Searching for fortune A
4391
+ D, [2012-01-12T12:23:18.138031 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4392
+ D, [2012-01-12T12:23:18.138124 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4393
+ D, [2012-01-12T12:23:18.138222 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4394
+ D, [2012-01-12T12:23:18.149095 #81909] DEBUG -- : Writing response to client (25 bytes)
4395
+ D, [2012-01-12T12:23:21.008333 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4396
+ D, [2012-01-12T12:23:21.008655 #81909] DEBUG -- : Searching for fortune A
4397
+ D, [2012-01-12T12:23:21.008765 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4398
+ D, [2012-01-12T12:23:21.008872 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4399
+ D, [2012-01-12T12:23:21.008977 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4400
+ D, [2012-01-12T12:23:21.009139 #81909] DEBUG -- : Writing response to client (25 bytes)
4401
+ D, [2012-01-12T12:23:25.656801 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4402
+ D, [2012-01-12T12:23:25.657076 #81909] DEBUG -- : Searching for fortune CNAME
4403
+ D, [2012-01-12T12:23:25.657176 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4404
+ D, [2012-01-12T12:23:25.657273 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4405
+ D, [2012-01-12T12:23:25.657376 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4406
+ D, [2012-01-12T12:23:25.657471 #81909] DEBUG -- : Resource type CNAME matched ["CNAME"]
4407
+ D, [2012-01-12T12:23:25.657567 #81909] DEBUG -- : Query fortune matched (?-mix:fortune) with result #<MatchData "fortune">
4408
+ I, [2012-01-12T12:23:25.700122 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
4409
+ I, [2012-01-12T12:23:25.700329 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x102af2b68 @name=#<Resolv::DNS::Name: 42377ce874ccebc7147aef8af43bb575.fortune>>
4410
+ D, [2012-01-12T12:23:25.700468 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x102af2b68 @name=#<Resolv::DNS::Name: 42377ce874ccebc7147aef8af43bb575.fortune>> 5 1
4411
+ D, [2012-01-12T12:23:25.700717 #81909] DEBUG -- : Rule returned successfully
4412
+ D, [2012-01-12T12:23:25.700892 #81909] DEBUG -- : Writing response to client (72 bytes)
4413
+ D, [2012-01-12T12:23:33.722081 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4414
+ D, [2012-01-12T12:23:33.722401 #81909] DEBUG -- : Searching for 42377ce874ccebc7147aef8af43bb575.fortune A
4415
+ D, [2012-01-12T12:23:33.722511 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4416
+ D, [2012-01-12T12:23:33.722614 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4417
+ D, [2012-01-12T12:23:33.722716 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4418
+ D, [2012-01-12T12:23:33.722879 #81909] DEBUG -- : Writing response to client (58 bytes)
4419
+ D, [2012-01-12T12:23:38.566705 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4420
+ D, [2012-01-12T12:23:38.567046 #81909] DEBUG -- : Searching for 42377ce874ccebc7147aef8af43bb575.fortune TXT
4421
+ D, [2012-01-12T12:23:38.567153 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4422
+ D, [2012-01-12T12:23:38.567253 #81909] DEBUG -- : Resource type TXT matched
4423
+ D, [2012-01-12T12:23:38.567381 #81909] DEBUG -- : Query 42377ce874ccebc7147aef8af43bb575.fortune matched (?-mix:(.*)\.fortune) with result #<MatchData "42377ce874ccebc7147aef8af43bb575.fortune" 1:"42377ce874ccebc7147aef8af43bb575">
4424
+ I, [2012-01-12T12:23:38.567492 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::TXT
4425
+ I, [2012-01-12T12:23:38.567612 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::TXT:0x102ae5148 @strings=["I can't understand it. I can't even understand the people who can understand it. -- Queen Juliana of the Netherlands"]>
4426
+ D, [2012-01-12T12:23:38.567739 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::TXT:0x102ae5148 @strings=["I can't understand it. I can't even understand the people who can understand it. -- Queen Juliana of the Netherlands"]> 16 1
4427
+ D, [2012-01-12T12:23:38.567942 #81909] DEBUG -- : Rule returned successfully
4428
+ D, [2012-01-12T12:23:38.568097 #81909] DEBUG -- : Writing response to client (187 bytes)
4429
+ D, [2012-01-12T12:23:57.487760 #81909] DEBUG -- : Receiving incoming query (25 bytes)...
4430
+ D, [2012-01-12T12:23:57.488050 #81909] DEBUG -- : Searching for fortune CNAME
4431
+ D, [2012-01-12T12:23:57.488147 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4432
+ D, [2012-01-12T12:23:57.488236 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4433
+ D, [2012-01-12T12:23:57.488348 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4434
+ D, [2012-01-12T12:23:57.488441 #81909] DEBUG -- : Resource type CNAME matched ["CNAME"]
4435
+ D, [2012-01-12T12:23:57.488535 #81909] DEBUG -- : Query fortune matched (?-mix:fortune) with result #<MatchData "fortune">
4436
+ I, [2012-01-12T12:23:57.535450 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
4437
+ I, [2012-01-12T12:23:57.535677 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x102add830 @name=#<Resolv::DNS::Name: 2b2937565cf95f56ecd390e9839fd535.fortune>>
4438
+ D, [2012-01-12T12:23:57.535829 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x102add830 @name=#<Resolv::DNS::Name: 2b2937565cf95f56ecd390e9839fd535.fortune>> 5 1
4439
+ D, [2012-01-12T12:23:57.536082 #81909] DEBUG -- : Rule returned successfully
4440
+ D, [2012-01-12T12:23:57.536273 #81909] DEBUG -- : Writing response to client (72 bytes)
4441
+ D, [2012-01-12T12:24:11.423699 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4442
+ D, [2012-01-12T12:24:11.423991 #81909] DEBUG -- : Searching for 2b2937565cf95f56ecd390e9839fd535.fortune A
4443
+ D, [2012-01-12T12:24:11.424094 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4444
+ D, [2012-01-12T12:24:11.424187 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4445
+ D, [2012-01-12T12:24:11.424281 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4446
+ D, [2012-01-12T12:24:11.424432 #81909] DEBUG -- : Writing response to client (58 bytes)
4447
+ D, [2012-01-12T12:24:19.111504 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4448
+ D, [2012-01-12T12:24:19.111786 #81909] DEBUG -- : Searching for 2b2937565cf95f56ecd390e9839fd535.fortune CNAME
4449
+ D, [2012-01-12T12:24:19.111884 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4450
+ D, [2012-01-12T12:24:19.111974 #81909] DEBUG -- : Checking rule [/stats.fortune/, "TXT"]...
4451
+ D, [2012-01-12T12:24:19.112062 #81909] DEBUG -- : Checking rule [/fortune/, ["CNAME"]]...
4452
+ D, [2012-01-12T12:24:19.112149 #81909] DEBUG -- : Resource type CNAME matched ["CNAME"]
4453
+ D, [2012-01-12T12:24:19.112251 #81909] DEBUG -- : Query 2b2937565cf95f56ecd390e9839fd535.fortune matched (?-mix:fortune) with result #<MatchData "fortune">
4454
+ I, [2012-01-12T12:24:19.150918 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::CNAME
4455
+ I, [2012-01-12T12:24:19.151134 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::CNAME:0x102ace358 @name=#<Resolv::DNS::Name: 53189f4c8056aa6dda93f2152296e3d7.fortune>>
4456
+ D, [2012-01-12T12:24:19.151271 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::CNAME:0x102ace358 @name=#<Resolv::DNS::Name: 53189f4c8056aa6dda93f2152296e3d7.fortune>> 5 1
4457
+ D, [2012-01-12T12:24:19.151535 #81909] DEBUG -- : Rule returned successfully
4458
+ D, [2012-01-12T12:24:19.151733 #81909] DEBUG -- : Writing response to client (105 bytes)
4459
+ D, [2012-01-12T12:24:30.121555 #81909] DEBUG -- : Receiving incoming query (58 bytes)...
4460
+ D, [2012-01-12T12:24:30.121825 #81909] DEBUG -- : Searching for 2b2937565cf95f56ecd390e9839fd535.fortune TXT
4461
+ D, [2012-01-12T12:24:30.121917 #81909] DEBUG -- : Checking rule [/(.*)\.fortune/, "TXT"]...
4462
+ D, [2012-01-12T12:24:30.122015 #81909] DEBUG -- : Resource type TXT matched
4463
+ D, [2012-01-12T12:24:30.122126 #81909] DEBUG -- : Query 2b2937565cf95f56ecd390e9839fd535.fortune matched (?-mix:(.*)\.fortune) with result #<MatchData "2b2937565cf95f56ecd390e9839fd535.fortune" 1:"2b2937565cf95f56ecd390e9839fd535">
4464
+ I, [2012-01-12T12:24:30.122239 #81909] INFO -- : Resource class: Resolv::DNS::Resource::IN::TXT
4465
+ I, [2012-01-12T12:24:30.122352 #81909] INFO -- : Resource: #<Resolv::DNS::Resource::IN::TXT:0x102ac6ef0 @strings=["This process can check if this value is zero, and if it is, it does something child-like. -- Forbes Burkowski, CS, University of Washington"]>
4466
+ D, [2012-01-12T12:24:30.122464 #81909] DEBUG -- : add_answer: #<Resolv::DNS::Resource::IN::TXT:0x102ac6ef0 @strings=["This process can check if this value is zero, and if it is, it does something child-like. -- Forbes Burkowski, CS, University of Washington"]> 16 1
4467
+ D, [2012-01-12T12:24:30.123161 #81909] DEBUG -- : Rule returned successfully
4468
+ D, [2012-01-12T12:24:30.123310 #81909] DEBUG -- : Writing response to client (210 bytes)
@@ -1 +1 @@
1
- 1104
1
+ 81909
data/test/soa_example1.rb CHANGED
@@ -1,19 +1,24 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # Copyright (c) 2009 Samuel Williams. Released under the GNU GPLv3.
4
- #
5
- # This program is free software: you can redistribute it and/or modify
6
- # it under the terms of the GNU General Public License as published by
7
- # the Free Software Foundation, either version 3 of the License, or
8
- # (at your option) any later version.
3
+ # Copyright (c) 2009, 2011 Samuel G. D. Williams. <http://www.oriontransfer.co.nz>
9
4
  #
10
- # This program is distributed in the hope that it will be useful,
11
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- # GNU General Public License for more details.
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
14
11
  #
15
- # You should have received a copy of the GNU General Public License
16
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ # THE SOFTWARE.
17
22
 
18
23
  require 'rubygems'
19
24
  require 'rubydns'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Samuel Williams
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-07-18 00:00:00 +12:00
17
+ date: 2012-01-12 00:00:00 +13:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency