DHCP IP address tracking: how to find who had an IP address on a past date
DHCP IP address tracking explained: how to find which device held an IP on a past date, why lease history matters for incident response and CERT-In logs.
DHCP IP address tracking is the ability to answer one question at any time: which device held this IP address at that moment? Because DHCP hands out addresses dynamically, the device using 10.20.14.37 today may not be the one that used it last Tuesday. Without a lease history, every alert, firewall log and abuse report that names an internal IP from the past points at nobody.
This how-to explains how DHCP leases work, where the evidence lives, why default logs are not enough, and how to build an IP history you can rely on during incident response.
Why does “who had this IP?” matter?
Almost every security investigation starts with an IP address. A SIEM alert, a firewall deny, a proxy log entry, an outbound connection to a known-bad domain, a complaint from an external party — they all record the source IP, not the device or the person.
On a network with static addresses, that is easy. On a campus or enterprise network where laptops, phones and lab machines get addresses from DHCP, the address may have changed hands several times since the event. If the investigator looks up who has the IP now, they may accuse the wrong user and miss the real device entirely.
The questions incident responders need to answer are:
- Which device (MAC address, hostname) held the IP at the time of the event?
- When did that lease start and end?
- Who else held the address before and after?
- Where is that device now, and what IP does it hold today?
How do DHCP leases work?
DHCP, defined in RFC 2131, lets a server assign an IP address to a client for a limited time — the lease. The short version:
- A client broadcasts a request; the server offers an address; the client accepts; the server acknowledges.
- The lease has a duration. The client renews it periodically while it stays on the network.
- When a client leaves, the lease eventually expires and the address returns to the pool for someone else.
Each lease records, at minimum, the IP address, the client’s hardware (MAC) address, usually a hostname, and the lease start and expiry. That record — kept over time — is the evidence you need.
On busy networks such as student Wi-Fi, guest networks and hot-desk floors, leases are often short and addresses are reused many times a day. Those are exactly the networks where historical tracking matters most.
Where does the evidence live today?
| Source | What it records | The catch |
|---|---|---|
| DHCP server lease table | Current leases only | Shows who has the IP now, not last week |
| Windows Server DHCP audit logs | Lease events, one file per weekday | By default overwritten weekly, so roughly seven days of history |
| ISC DHCP or Kea lease files and logs | Lease events | Rotation and retention depend on your configuration |
| Syslog or SIEM | Whatever is forwarded | Needs parsing, and searching it by IP and time is slow |
| Switch and wireless controller tables (ARP, MAC) | Current IP–MAC mappings | Point-in-time, not historical |
Windows Server’s DHCP audit logging names files by day of the week and overwrites each file when that day comes round again, which is why a question about an event ten days ago often has no answer. Many teams only discover this during their first serious incident.
What do Indian regulations expect?
CERT-In’s directions of 28 April 2022, issued under section 70B(6) of the IT Act, require service providers, intermediaries, data centres, body corporate and government organisations to:
- enable logs of all their ICT systems and maintain them securely for a rolling period of 180 days, within Indian jurisdiction;
- report specified cyber incidents to CERT-In within six hours of noticing them;
- synchronise their ICT systems’ clocks with NTP servers of NIC or NPL, or servers traceable to them.
A seven-day DHCP log does not meet a 180-day expectation, and an investigation that has to start within hours cannot wait for someone to grep a year of syslog. Accurate time also matters: if your DHCP server and your firewall disagree on the time by a few minutes, a short lease can point at the wrong device.
Sector rules — such as the RBI’s cyber security framework for banks — add their own logging and incident response expectations on top.
How to find who had an IP on a past date
With a lease history in place, the process is short:
- Take the IP and the exact time from the alert or log, and note its time zone.
- Search the lease history for that IP around that time.
- Find the lease active at that moment — the one whose start is before the event and whose end is after it.
- Record the MAC address and hostname of the device that held it.
- Look at the leases either side, to make sure the event did not fall in a hand-over between two devices.
- Find where the device is now — its current IP, if it still holds one, or when it was last seen.
- Correlate to a person using your asset inventory, Wi-Fi or network access logins, or directory sign-in logs for the same time.
A worked example
At 02:14 on 9 March, the firewall at a university campus logs repeated connections from 10.20.14.37 to a known malicious host. The SOC team picks up the alert at 09:30.
- The current DHCP lease table shows 10.20.14.37 belongs to a lab PC that was switched on at 08:00 — not the culprit.
- The lease history shows that between 23:40 and 03:10 the address was held by a laptop with hostname
HOSTEL-B-LT-0412. - The same laptop now holds 10.20.9.118 on a different floor.
- The wireless controller logs for that MAC show a student login at 23:38.
Without the history, the lab PC would have been reimaged and the infected laptop would still be on the network.
What makes a good DHCP IP tracking tool?
- Collects every lease automatically from all DHCP servers, not just one
- Keeps history for at least as long as your log retention policy (180 days or more for CERT-In)
- Shows the full lease timeline for any IP: every device that held it and when
- Shows the current holder of an IP at a glance
- Searches by IP, MAC or hostname, with a time range
- Uses synchronised time consistent with your firewall and SIEM
- Stores data on your own infrastructure, inside India
- Sits alongside network monitoring, so an alert and its device history are in one place
Common pitfalls
- Relying on the current lease table. It is the wrong answer for any past event.
- Forgetting secondary DHCP servers. Failover and split-scope setups mean some leases are issued elsewhere.
- Ignoring time zones. Cloud services often log in UTC; on-premises systems in IST.
- Very short leases on guest Wi-Fi. These need the most history, not the least.
- MAC randomisation. Modern phones and laptops can use a different MAC per network. Correlate with authentication logs rather than relying on MAC alone.
Where AyatiNMS fits
AyatiNMS tracks every DHCP lease, so you can rewind any IP address: see how it moved between devices, who holds it now, or exactly who had it seven days ago. The DHCP timeline sits alongside SNMP discovery, live health and bandwidth monitoring and bulk configuration push, so the device behind an alert is one search away. Read more about SNMP auto-discovery and safe configuration push and choosing a network monitoring tool for a campus.
If your next incident starts with an IP address from last week, see the DHCP timeline on your own network. For sector context, visit our industries page.
Frequently asked questions
How do I find which device had an IP address last week?
You need a record of DHCP leases over time. Search the lease history for the IP address and the time of interest; the lease active at that moment gives the MAC address and hostname of the device that held it.
How long does Windows DHCP keep its logs?
By default, Windows Server DHCP audit logs are written to one file per weekday and overwritten when that weekday comes round again, so they cover roughly the last week. For anything older you need to collect and keep lease history elsewhere.
Do CERT-In rules require keeping network logs?
CERT-In’s directions of 28 April 2022 require service providers, intermediaries, data centres, body corporate and government organisations to enable logs of all their ICT systems and keep them securely within India for a rolling 180 days.
Can a DHCP log identify the person behind an IP address?
A DHCP lease identifies the device — its MAC address and hostname. To reach a person, correlate the device with your asset inventory, Wi-Fi or network login records, or directory sign-in logs for the same time.