[ntp:questions] Re: Programming - Has anyone got any ebooks on network programming in C?
mayer at gis.net
Mon Oct 27 21:25:05 UTC 2003
"David Norris" <david.norris23 at ntlworld.com> wrote in message news:<ukjmb.533$Fk5.1039910 at newsfep1-win.server.ntli.net>...
> In specific, anything relating to NTP (network time protocol), DNS (the
> domain name service) or Whois? I am currently working on a project which
> requires use of these protocols. Getting information is proving difficult,
> as it's a somewhat specialised requirement! I am designing an intrusion
> detection system, to which I would like to add the capability to synchronise
> the system clock with NTP, and perform DNS or WHOIS lookups (hopefully
> automatically). I am even considering making the software available online,
> if it gives the desired results. It runs on Windows NT4/2000/XP and should
> hopefully also run on future versions of NT. Windows 9.X is not supported,
> as Windows 95 has been obsolete for some time; 98 will be at the end of
> 2003, and ME not too long afterwards. (Windows 2000 and XP are actually NT
> versions 5.0 and 5.1 respectively).
> Anyone who is interested in the project can see some information online
> here: http://184.108.40.206/dissertation/Home.htm
I tried to post a reply before but it got lost.
If you are just using DNS for lookups, download the 8.4.x source and build
at least libbind. BIND 9 on Win32 does not build this library. If you need
the whole thing, then download BIND 9.2.3 source. Cricket Liu's DNS and
BIND 4th edition book from O'Reilly gives examples of how to call the
libbind interface. For NTP there is no callable interface so you will need
to download the 4.2.0 source and figure it out yourself. For WHOIS, I haven't
tried to build my own, but you should be aware that you will have to make
multiple calls to different servers to get the records you need since
there are now multiple registrars for domains like .com. and any response
may redirect you to a different registrar instead of giving you an answer
since they may not own the information.
Those are the things I can think of off the top of my head.
More information about the questions