Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to get my network address and name even in DHCP.

Reply
Thread Tools Display Modes

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

 
 
www.hyebun.com
Guest
Posts: n/a

 
      09-09-2003, 06:26 AM

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
 
 
 
 
Phil Frisbie, Jr.
Guest
Posts: n/a

 
      09-09-2003, 03:27 PM
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
 
Bill Marcum
Guest
Posts: n/a

 
      09-09-2003, 03:54 PM
On Tue, 09 Sep 2003 15:26:37 +0900, www.hyebun.com
<(E-Mail Removed)> 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shorten the DHCP client acquring network address time lywwing Windows Networking 7 09-22-2008 03:39 AM
EventID 1005 DHCP - network address is already in use on the netwo Anders strand-Holm Wireless Networks 5 08-15-2006 03:10 AM
DHCP doenst assing the right address in wirelless network Andre Broadband 3 05-29-2004 03:08 PM
Private Network Address And DHCP Paul Home Networking 1 01-29-2004 07:14 PM
ip address assigned bu dhcp but cannot access network news.bellsouth.net Windows Networking 0 08-19-2003 07:34 PM



1 2 3 4 5 6 7 8 9 10 11