1

In the context of a Service Desk, the engineers have to lookup the IP addresses in the DHCP server a lot. For example to use a VNC viewer.

I can't find a tool on the internet that actually makes it possible to search for an ip address, hostname or mac address in the leased addresses.

2

You can use the following PowerShell cmdlet:

Get-DhcpServerv4Lease

example:

Get-DhcpServerv4Lease -ScopeId 192.168.1.0 |Where-Object {$_.IPAddress -eq "192.168.1.100"}

What I would do is schedule the creation of a CSV file regularly so the Service Desk team can easily search in it:

Get-DhcpServerv4Lease -ScopeId 192.168.1.0 |Export-Csv -Path \\myFileServer\DHCPInfo\dhcp.csv -NoTypeInformation
1
  • Thank you, this might be a very viable option. I'll try to implement it has quickly as possible and post the results here. – user2827958 Jul 14 '17 at 13:15
0

Since you are dealing with DHCP (and assuming this is on a domain), just make sure your DHCP Scopes are set to register DNS. You can either set it to update per the client's request (which means the DNS setting needs to be enabled on their adapter), or have the DNS server update itself when there is a new lease given (this removes the need to have it specified on the client machine). Also, you can have it discard records after the lease is deleted, to keep the DNS zone clean.

DHCP dynamic DNS

This way, your Service Desk can just use the hostname in VNC viewer, or simply ping its FQDN to get the IP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.