![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| who - PC Computer name | gefa | UNIX for Advanced & Expert Users | 4 | 04-26-2007 06:11 AM |
| Change Computer Name | CBarraford | OS X (Apple) | 2 | 03-03-2007 09:57 PM |
| Another customisation for my computer | davidY | Shell Programming and Scripting | 1 | 01-01-2007 08:33 PM |
| xwindow on old computer | pgas | UNIX for Dummies Questions & Answers | 1 | 03-15-2004 07:24 AM |
| can't acces ftp from my computer | TuMux | UNIX for Dummies Questions & Answers | 7 | 11-18-2003 10:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all!
Is there any function to get the name from a computer by the IP adresse? Thank you in advance! Greetings Mario |
| Forum Sponsor | ||
|
|
|
|||
|
The gethostbyaddr subroutine returns a pointer to a structure of type hostent. Its members specify data obtained from either the local /etc/hosts file or one of the files distributed by DNS. To determine which file or files to search, and in which order, the system uses the switches as defined.
As the routine reads /etc/hosts file we should use endhostent() routine to close the /etc/hosts file.
__________________
Regards, Satya Prakash Prasad |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|