First a bit of background. We use an SME Server (7.3) as a firewall/gateway/DNS/proxy server for our network. Our network runs a Windows 2003 Active Directory (mydomain.local). DHCP is provided by a Win2003 Server, and all workstations send DNS requests to a Win2003 Server. If the DNS request is for an internal host (host.mydomain.local), the Win2003 Server can satisfy the DNS request, otherwise it forwards the request to the SME Server. The vast majority of workstations (300+) receive IP addresses via DHCP.
SME runs dansguardian and we have started to use SARG to monitor internet usage. Users do not log in to the SME proxy server - dansguardian is running transparently. As such, the USERID according to SARG/dansguardian is pc-00xxx.mydomain.local and corresponds to the host's IP address. This therefore means that if a workstation gets a different IP address it will have a different USERID in the dansguardian logs. I would like to have SARG report the USERID as the correct hostname of each machine, rather than logging in effect according to IP address.
I don't fully understand where the name pc-00xxx comes from, but I'm guessing that because the SME Server cannot resolve a hostname for the local IP addresses it generates this name automatically. I was thinking - can I tell SME to query the Win2003 server for reverse lookups for IPs in the local range, but to perform all other lookups as normal? I can't tell SME to forward all queries to the Win2003 Server, because it forwards its queries to SME! And assuming I could do this, would it solve my problem and cause the correct hostnames to appear in the dansguardian logs?
I realise this problem could be solved by entering the MAC addresses and hostnames into the Hostnames and Addresses tab of server-manager, but with 300+ clients that would be irritating to maintain. And besides, if I was going to do that, I may as well enter the MAC addresses into the DHCP server and reserve an IP for each client. I do understand that the clients are going to get the IP number most of the time, but I'd rather be sure if I can that the USERID corresponds to a single machine.
I hope that was clear enough... thanks in advance for your thoughts.
Tim.