Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
IP Address « Network « Ruby
Ruby
Network
IP Address
1.
resolv useful for converting between hostnames and IP addresses
2.
Get all the addresses associated with a hostname
3.
turn IP addresses into hostnames using the getname method
4.
To search for MX records you have to use the Resolv::DNS class