The whois utility [1] is available on most Linux distros and *nix flavours, it will give you information such as:
- Using an IP, netrange and information regarding the network owner (contact and abuse info). Gathered from the Regional Internet Registry (RIR) databases.
- Using a domain, registrant info --if public, abuse details etc..