LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Getting IP range of server (https://www.linuxquestions.org/questions/linux-networking-3/getting-ip-range-of-server-622897/)

abdul_zu 02-21-2008 05:08 PM

Getting IP range of server
 
Hi friends,

Is there any command in linux to get all assigned IPs for a particular remote server?

for the example if my server have 3 IPs

1- 212.111.111.1
1- 212.111.111.2
1- 212.111.111.3

My customer knows only 212.111.111.1 now i want to give him some command so they can get all remaining two IPs from 212.111.111.1?

forrestt 02-21-2008 05:12 PM

The command to list the status of all interfaces' configurations is:

Code:

/sbin/ifconfig -a
HTH

Forrest

abdul_zu 02-21-2008 05:17 PM

This i have to run on same server.
But i want to get all IPs for remote server through my local server

jschiwal 02-21-2008 05:36 PM

You will need to log into the remote server and run the ifconfig command. Other devices will be on different network segments unless the server uses bonding in which case there wouldn't be other IP addresses.
Quote:

for the example if my server have 3 IPs

1- 212.111.111.1
1- 212.111.111.2
1- 212.111.111.3
Your example is atypical unless you are running virtual servers with virtual IP addresses.
Something like:

10.0.1.1/24
10.0.2.1/24
10.0.3.1/24

Would make more sense. Each NIC is connected to a different subnet.

More typical might be
24.240.28.10
10.0.2.1/24
10.0.3.1/24
The first interface is probably connected to the internet. The second one may be on a segment with servers exposed to the internet and the third might be the internal LAN. This looks like a gateway or proxy server.

If you have a client and you want them to know your server's IP address, you could also email them that info. It is doubtful that you would have a single server on the internet with 3 IP addresses. And if the addresses are for a server on your LAN, it's non of their business knowing that info anyway.

In your first post, you were asking how to provide information on your server. In your second post, you suddenly turned things around. You want to know someone else's server's IP addresses and the second post is less hypothetical.

forrestt 02-21-2008 05:38 PM

There's no way of really determining that for certain. The command "nslookup" will give you IP's associated with a system name, but that doesn't mean they are actually all the same system (e.g. If you do "nslookup www.google.com" you will get 4 IP addresses which I would guess are 4 different servers that serve pages in some kind of load balancing scenario.) And that only works for systems that are in DNS. If you had more specifics, I might be able to help more, but as it is, I don't know of any way to get the info you want (with Linux or any other OS).

HTH

Forrest

abdul_zu 02-21-2008 06:18 PM

Actually i am working in ISP company. And we need to block some illegal VoIP provider not all thats why we need to get all IP addresses of their server using their main server's IP.

They are using DNS for their customer to register but we cannot block DNS may be other web site can affected so we just can block only IPs. My question is if i got the DNS to get the IP and from that IP i can get his whole server IPs so i can put in our firewall.

If blocked only one IP which already pointed thier DNS then we have to always monitor that can point their domain to their other IPs quickly.

jschiwal 02-21-2008 10:28 PM

If you are their ISP, aren't you the one who assigned their IP addresses?

If you have abusive incoming traffic you could use nslookup to find the fqdn assigned to a single IP address and then use dig or whois to look up what addresses that domain has.

By the way, why is VOIP illegal?

abdul_zu 02-22-2008 09:49 AM

HI,

What is fqdn? I tried the following CMD on our server and i got the following info.

[root@host ~]# nslookup 72.52.239.46
Server: 69.16.234.69
Address: 69.16.234.69#53

Non-authoritative answer:
46.239.52.72.in-addr.arpa name = host.qualityfone.com.

Authoritative answers can be found from:

[root@host ~]#


Could you please tell me what is fqdn and using what information i should dig?

This IP is of my server and it have more one IP could you try to find the another IP please and paste here how you did if you success.

Thank You

jschiwal 02-22-2008 11:53 AM

FQDM stands for fully qualified domain name. Such as "www.linuxquestions.org". Apparently no one registers a domain name with that IP address. The best you can probably do is look up in a whois site and see who owns the block of addresses. This will probably be the person's ISP.

----

I looked up the IP address you gave. It is an akamai IP address.


All times are GMT -5. The time now is 11:36 AM.