lib/net/dns.rb in net-dns-0.6.1 vs lib/net/dns.rb in net-dns-0.7.0
- old
+ new
@@ -1,32 +1,33 @@
require 'net/dns/core_ext'
require 'net/dns/version'
+require 'net/dns/resolver'
-module Net # :nodoc:
+module Net
module DNS
-
+
# Packet size in bytes
- PACKETSZ = 512
-
- # Size of the header
- HFIXEDSZ = 12
-
+ PACKETSZ = 512
+
+ # Size of the header
+ HFIXEDSZ = 12
+
# Size of the question portion (type and class)
- QFIXEDSZ = 4
-
+ QFIXEDSZ = 4
+
# Size of an RR portion (type,class,lenght and ttl)
RRFIXEDSZ = 10
-
+
# Size of an int 32 bit
- INT32SZ = 4
-
+ INT32SZ = 4
+
# Size of a short int
- INT16SZ = 2
+ INT16SZ = 2
module QueryTypes
-
+
SIGZERO = 0
A = 1
NS = 2
MD = 3
MF = 4
@@ -81,30 +82,31 @@
MAILB = 253
MAILA = 254
ANY = 255
end
-
+
module QueryClasses
-
+
# Internet class
IN = 1
-
+
# Chaos class
CH = 3
-
+
# Hesiod class
HS = 4
-
+
# None class
NONE = 254
-
+
# Any class
ANY = 255
-
+
end
-
+
include QueryTypes
include QueryClasses
end
+
end