<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>
<div>On May 24, 2012, at 4:05 AM, Rudy Zijlstra wrote:</div>
<blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">You
 canot determine that from the resolv entry points. The DNS name server can work with different expiry times even within a single domain. DHCP does not have any knowledge on this, except for dynamic DNS updates where the lease time usualy determines the DNS
 expiration time<br>
</span></blockquote>
</div>
<br>
<div>There is no such thing as a "DNS expiration time" except with respect to DNSSEC key lifetimes.   DNS updates set the TTL relative to the lease time (I don't remember the exact details, and they've probably changed anyway since I wrote the code).   I presume
 that the OP was asking about how to expire entries from /etc/resolv.conf that have been added by the client.   The answer is that if your lease changes, /etc/resolv.conf gets updated, and I _think_ that if your lease expires, it also gets updated.   But if
 it doesn't get updated until a new lease is acquired, that's okay, because once your lease has expired, you're offline (unless you are running multiple interfaces, a case that is not well handled).</div>
<div><br>
</div>
</body>
</html>