You are not logged in.

#1 2011-06-03 22:17:49

dodo3773
Member
Registered: 2011-03-17
Posts: 818

[Solved] Find domain names from ip addresses bash cli

I am trying to figure out if there is a reliable way (or any way) to convert ip addresses to domain names in the terminal. Like etherape does.

Last edited by dodo3773 (2011-06-03 23:20:29)

Offline

#2 2011-06-03 23:04:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Find domain names from ip addresses bash cli

Like 'whois'?

Offline

#3 2011-06-03 23:09:59

dodo3773
Member
Registered: 2011-03-17
Posts: 818

Re: [Solved] Find domain names from ip addresses bash cli

karol wrote:

Like 'whois'?

I tried whois and cannot seem to get the data I am looking for. It tells me a lot of good information. Just no actual domain name.

Offline

#4 2011-06-03 23:15:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [Solved] Find domain names from ip addresses bash cli

You can use the "host" command. Or "dig -x" - add +short to have just the domain.

Last edited by lucke (2011-06-03 23:18:00)

Offline

#5 2011-06-03 23:16:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Find domain names from ip addresses bash cli

lucke wrote:

You can use the "host" command.

It's in dnsutils package.

Offline

#6 2011-06-03 23:20:08

dodo3773
Member
Registered: 2011-03-17
Posts: 818

Re: [Solved] Find domain names from ip addresses bash cli

lucke wrote:

You can use the "host" command. Or "dig -x" - add +short to have just the domain.

Awesome. Thanks.

Offline

Board footer

Powered by FluxBB