Identifying the owner of an IP address

From: Rennie deGraaf (ca.ucalgary.cpsc_at_degraaf)
Date: 11/27/04


Date: Sat, 27 Nov 2004 18:54:44 GMT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

~From within a C program, what is the best way to determine if a
particular IP address belongs to the host the program is running on? The
host may be a router, so it can have an arbitrary number of interfaces
and IP addresses, and it might not use DNS. The program runs as root,
so I can use weird low-level kernel interfaces if necessary.

If possible, I need this to work on both Linux 2.4 and Linux 2.6, but
other systems aren't as important at the momment.

Rennie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBqM1zIvU5mZP08HERAl7bAKDOA2wng0tu886sXUokZuv5qP8WSQCaA5ri
8KpQHqFR9ESlDR/f5bEmGEk=
=sA3W
-----END PGP SIGNATURE-----



Relevant Pages

  • How to tell if an IP address belongs to a host?
    ... particular IP address belongs to the host the program is running on? ... so I can use weird low-level kernel interfaces if necessary. ... If possible, I need this to work on both Linux 2.4 and Linux 2.6, but ...
    (comp.os.linux.networking)
  • Re: Identifying the owner of an IP address
    ... > particular IP address belongs to the host the program is running on? ... > host may be a router, so it can have an arbitrary number of interfaces ... > so I can use weird low-level kernel interfaces if necessary. ...
    (comp.unix.programmer)
  • Re: Q: Is that possible to start my own basement web server with Linux?
    ... >> Linux don't prevent you from running your own web host in your basement, ... >> streams, this will consume a lot of your hard drive space and bandwidth, ... >> the bandwidth while the rest gets messages about the web server being to ...
    (alt.linux)
  • Re: moodss and putty problem
    ... moodss is running on a win2k host, the remote host is linux ... > Now this is in the putty user's manual, ... > remote side prompts me for a password. ...
    (comp.lang.tcl)
  • Re: 2003 Server vs. Linux
    ... is, of course, cheaper to host because the entrance prices for the systems ... Most hosting providers' servers run - IIRC - Free BSD or some ... Linux would undoubtedly be cheaper at first. ...
    (microsoft.public.windows.server.general)