# Using resolv.rb

**URL:** <https://www.ruby-forum.com/t/using-resolv-rb/73151>\
**Category:** Ruby\
**Created:** [February 25, 2006, 10:14am UTC](https://www.ruby-forum.com/t/using-resolv-rb/73151 "2006-02-25T10:14:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmallFries](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@SmallFries](https://www.ruby-forum.com/u/SmallFries)\
**Post date:** [February 25, 2006, 10:14am UTC](https://www.ruby-forum.com/t/using-resolv-rb/73151/1 "2006-02-25T10:14:27Z")

</div>

Hello All

I am working on developing an application that does mx/a/ns lookups .  
I was looking into the resolv.rb lib.

[http://www.eng.dmu.ac.uk/~hgs/ruby/RUBY\_SNAPSHOT\_RDOC/files/lib/ruby/1\_8/resolv\_rb.html](http://www.eng.dmu.ac.uk/~hgs/ruby/RUBY_SNAPSHOT_RDOC/files/lib/ruby/1_8/resolv_rb.html)

Also I would like to be able to easy open a socket to a port/ip and  
get/send  
a response.  
What lib would be easiest to use ?

I am new to Ruby/Rails, but come from a OOP background.

Thank You

---

<div class="post-metadata">

**Author:** ![SmallFries](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@SmallFries](https://www.ruby-forum.com/u/SmallFries)\
**Post date:** [February 25, 2006, 10:41am UTC](https://www.ruby-forum.com/t/using-resolv-rb/73151/2 "2006-02-25T10:41:37Z")

</div>

On Feb 25, 2006, at 1:12 AM, SmallFries wrote:

> I am working on developing an application that does mx/a/ns lookups .  
> I was looking into the resolv.rb lib.

Resolv::DNS does that quite well.

> d like to be able to easy open a socket to a port/ip and get/send  
> a response.  
> What lib would be easiest to use ?

Use the built-in socket library.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
