lib/net/dns.rb in net-dns-0.8.0 vs lib/net/dns.rb in net-dns-0.9.0
- old
+ new
@@ -1,12 +1,12 @@
-require 'net/dns/core_ext'
-require 'net/dns/version'
-require 'net/dns/resolver'
+require_relative 'dns/version'
+require_relative 'dns/core_ext'
+require_relative 'dns/resolver'
+require_relative 'dns/rr'
module Net
module DNS
-
# Packet size in bytes
PACKETSZ = 512
# Size of the header
HFIXEDSZ = 12
@@ -21,13 +21,11 @@
INT32SZ = 4
# Size of a short int
INT16SZ = 2
-
module QueryTypes
-
SIGZERO = 0
A = 1
NS = 2
MD = 3
MF = 4
@@ -80,15 +78,13 @@
IXFR = 251
AXFR = 252
MAILB = 253
MAILA = 254
ANY = 255
-
end
module QueryClasses
-
# Internet class
IN = 1
# Chaos class
CH = 3
@@ -99,14 +95,11 @@
# None class
NONE = 254
# Any class
ANY = 255
-
end
include QueryTypes
include QueryClasses
-
end
-
end