OSDev.org
https://forum.osdev.org/

gethostbyname implementation
https://forum.osdev.org/viewtopic.php?f=1&t=11336
Page 1 of 1

Author:  carbonBased [ Fri Feb 03, 2006 10:34 am ]
Post subject:  gethostbyname implementation

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

Author:  Pype.Clicker [ Fri Feb 03, 2006 10:45 am ]
Post subject:  Re:gethostbyname implementation

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)

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/