This is a discussion on How to get my network address and name even in DHCP. within the Linux Networking forums, part of the Linux Forums category; Hi, I have searched newsgroup and read related books to get answer for this question. But I could not. Are ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, I have searched newsgroup and read related books to get answer for this question. But I could not. Are there any way to get the host's network ipaddr/name under DHCP and manually configured and on MSwindows and Linux operating systems? That is, I do not want to get the info from /etc/hosts but from really running configurations. |
|
|||
|
www.hyebun.com wrote:
> > Hi, > I have searched newsgroup and read related books to get answer for this > question. But I could not. > Are there any way to get the host's network ipaddr/name under DHCP and > manually configured and on MSwindows and Linux operating systems? > That is, I do not want to get the info from /etc/hosts but from really > running configurations. See gethostname() and gethostbyname(). -- Phil Frisbie, Jr. Hawk Software http://www.hawksoft.com |
|
|||
|
On Tue, 09 Sep 2003 15:26:37 +0900, www.hyebun.com
<bkna@besta.cc> wrote: > > Hi, > I have searched newsgroup and read related books to get answer for this > question. But I could not. > Are there any way to get the host's network ipaddr/name under DHCP and > manually configured and on MSwindows and Linux operating systems? > That is, I do not want to get the info from /etc/hosts but from really > running configurations. > ifconfig (ipconfig on Windows) hostname -- Commander Spiral Pyjama Pseudo-Rhinocerous Feline Thingamajig Bill Marcum (the First) Ozy and Millie Name Generator http://heifong.phase.org/omname.php |