The following program demonstrates how to lookup the IP address(es) for a domain name in Rust.
To lookup google.com enter cargo run -- google.com 80.
This zip file contains the complete crate.