Koozali.org: home of the SME Server

How do I get DHCP to use the client's host name?

Anonymous

How do I get DHCP to use the client's host name?
« on: February 25, 2004, 06:25:07 PM »
SME 6.0

I am running squidguard and SARG and want to be able to show the machine name (or FQDN) in the SARG reports.

I have added 'log_fqdn on' to /etc/squid/squid.conf via a custom template so squid does DNS lookups.

I found out that DHCP assigns names like pc-00001.blah.net. How do I get DHCP to get the hostname from the machine?

I have mostly WinXP clients but there will sometimes be other Windows and Linux clients.

Offline Boris

  • *
  • 783
  • +0/-0
How do I get DHCP to use the client's host name?
« Reply #1 on: February 25, 2004, 10:20:32 PM »
You could do it in reverse way.
Assign each computer permanent reserved IP by putting in the "hostname and addresses" their names and MAC address.
They will get DHCP assigned address (the same IP everytime) and server will know them by the name you give them.

Another approach is to upgrade your DHCP and DNS service on SME to versions that support dynamic DNS updates, but it could be chalenging and may break the server if done wrong.
...

ryan

How do I get DHCP to use the client's host name?
« Reply #2 on: February 26, 2004, 09:02:56 PM »
Guest,

On small LANs, I use the hostname reservations which will print the PC name in Sarg.

For larger LANs, I use Windows DHCP (presuming you have a Windows Server).  It is easy to reference IP addresses from SARG to those assigned by MS DHCP.

ryan