• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 508
  • Last Modified:

IP addresses

Hi,
Please tell me what is the command in Shell to find out all IP addresses which associated with one domain name.
Sincerely,
O.B.G
0
offir1
Asked:
offir1
  • 2
  • 2
1 Solution
 
HamdyHassanCommented:
ping domainname
0
 
jimbbCommented:
This won't necessarily work, because you are asking the DNS server for the domain to allow a zone transfer, and it may be (and in fact _should be_) configured to deny that request.  But, here goes:

host -l -v -t any (domain) (name server to query)


Or try the following:

dig @(name server to query) (domain) any


For additional information:
man host
man dig
0
 
bcouldreyCommented:
nslookup your.hostname

...should work also. It will return a list of IP addresses configured in the DNS for that domain.

\Ben.
0
 
jimbbCommented:
offir1, did you mean a "host name" or a "domain name?"

Please clarify, because obviously which of our suggestions works for you is going to depend on what you really meant, and at this point I think you meant a host name.
0
 
bcouldreyCommented:
Good point jimbb,

I actually used both hostname and domainname to mean 'hostname'... maybe offir1 can split the points ;)

\Ben.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now