OSDev.org

The Place to Start for Operating System Developers
It is currently Sun May 05, 2024 5:02 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: gethostbyname implementation
PostPosted: Fri Feb 03, 2006 10:34 am 
I'm in need of writting an implementation of gethostbyname() and would like to see a sample implementation or, at the very least, a good look at the protocol that is required.

Does anybody have such information? Googling continually gets me code that's using an OSs native gethostbyname which is useless to me.

Thanks,
Jeff


Top
  
 
 Post subject: Re:gethostbyname implementation
PostPosted: Fri Feb 03, 2006 10:45 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 2:31 am
Posts: 5964
Location: In a galaxy, far, far away
the protocol required is DNS (domain name service). "gethostbyname" typically try to get the "resolve" information from several libraries, including reading /etc/hosts file, then "libnss_dns" ...

You should find all the required information for implementation in RFCs (www.ietf.org)

_________________
Image May the source be with you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Amazonbot [bot], Bing [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group