problem with Resolv.rb

P

pat eyler

There's an unreasonable limit in resolv.rb:

at about line 1338:

class NS < DomainName
TypeValue = 2
end

which means you can only get the first to name servers back. Can this
be overridden at runtime (it complains about it being an already
initialized constant when I try)? If it can not be overridden, would
it be reasonable to bump this up to some other number (10 or so) in
the distributed version of resolv.rb?

thanks,
-pate
 
T

Tanaka Akira

pat eyler said:
There's an unreasonable limit in resolv.rb:

at about line 1338:

class NS < DomainName
TypeValue = 2
end

This corresponds to RFC 1035:

| TYPE value and meaning
|
| A 1 a host address
|
| NS 2 an authoritative name server
| ...
 
P

pat eyler

Tanaka,
thanks for the reply. It looks like we misunderstood something then
when we were troubleshooting our problem. Only 2 NS records are
returned in our test (dig returns all 4), The only place we saw what
looked like a limit was the TypeValue. Is the limit being enforced
somewhere else?

I'm away from the office right now, so I don't have access to the
code, but I can share it tomorrow.

-pate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top