LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2008, 05:08 PM   #1
abdul_zu
Member
 
Registered: Feb 2005
Posts: 71

Rep: Reputation: 15
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?
 
Old 02-21-2008, 05:12 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

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

Code:
/sbin/ifconfig -a
HTH

Forrest
 
Old 02-21-2008, 05:17 PM   #3
abdul_zu
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
This i have to run on same server.
But i want to get all IPs for remote server through my local server
 
Old 02-21-2008, 05:36 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 02-21-2008 at 05:39 PM.
 
Old 02-21-2008, 05:38 PM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
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
 
Old 02-21-2008, 06:18 PM   #6
abdul_zu
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
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.
 
Old 02-21-2008, 10:28 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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?
 
Old 02-22-2008, 09:49 AM   #8
abdul_zu
Member
 
Registered: Feb 2005
Posts: 71

Original Poster
Rep: Reputation: 15
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
 
Old 02-22-2008, 11:53 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 02-22-2008 at 11:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of range peterx1 Red Hat 1 09-17-2004 11:23 AM
Out of range Elyubarov Linux - Hardware 1 08-12-2004 08:49 PM
Apache2 Server - not working outside local ip address range Robstro Linux - Networking 3 06-14-2004 05:32 PM
out of range... andy010 Red Hat 5 11-19-2003 07:06 PM
out of range... Rowsdower11 Red Hat 6 11-17-2003 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration