How to get my network address and name even in DHCP.

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-09-2003
www.hyebun.com
 
Posts: n/a
Default How to get my network address and name even in DHCP.


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.




Reply With Quote
  #2 (permalink)  
Old 09-09-2003
Phil Frisbie, Jr.
 
Posts: n/a
Default Re: How to get my network address and name even in DHCP.

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

Reply With Quote
  #3 (permalink)  
Old 09-09-2003
Bill Marcum
 
Posts: n/a
Default Re: How to get my network address and name even in DHCP.

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0