[Samba] Re: Network LookUp
kris at longhill.brighton-hove.sch.uk
Mon Sep 6 21:17:35 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
>Kristyan, sorry, i must be explain the situation.
>I have squid and samba in the some server. With squid log, i have the
>list of machines contected to the server. With this ip, i want to do a
>lookup to give the machine name. I build my program in C++, with him i
>audit the squid log to make the ip, but i don't have idea about the
>samba api and libsmbclient api to give the samba name from ip.
My best suggestion would be to use the /etc/hosts file. This file (if you have added the entries) will list IPs against hostnames. This will allow you to use programs like ping from the command line using hostnames, and you can use it to cross refernce your squid logs.
If you don't fancy setting up a hosts file, you could set samba up as a WINS server. Then you can cross reference the wins data against the squid logs.
Kristyan Osborne - IT Technician
Longhill High School
01273 391672 / 304086
Computers are like airconditioners: They stop working properly if you open windows.
Win95: A 32-bit patch for a 16-bit GUI shell running on top of an
8-bit operating system written for a 4-bit processor by a
2-bit company who cannot stand 1 bit of competition.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
-----END PGP SIGNATURE-----
More information about the samba