{"id":4411,"date":"2024-04-05T20:26:06","date_gmt":"2024-04-05T14:56:06","guid":{"rendered":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/"},"modified":"2024-04-05T20:26:06","modified_gmt":"2024-04-05T14:56:06","slug":"delete-old-unused-static-records-from-dns-ad","status":"publish","type":"question","link":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/","title":{"rendered":"Delete old unused static records from DNS (AD)"},"content":{"rendered":"<p class=\"_1qeIAgB0cPwnLhDF9XSiJM\">We would like to delete all the unused resource records from our DNS server (Windows DNS server on Win2k16). This is an DNS integrated with domain controller. so the aging and scavenging options are available for dynamic records.<\/p>\n<p class=\"_1qeIAgB0cPwnLhDF9XSiJM\">Windows aging\/scavenging doesn&#8217;t touch static records.<\/p>\n<p class=\"_1qeIAgB0cPwnLhDF9XSiJM\">Basically I would like to delete everything that hasn&#8217;t been requested for 2 months. I can only think of enabling some logging (on the DNS software itself) in order to log all requests. Then after two months I&#8217;ll parse the log and do a kind of &#8220;diff&#8221; with the raw zone file in order to figure out the difference and delete the records not present in the log.<\/p>\n<p class=\"_1qeIAgB0cPwnLhDF9XSiJM\">My question is whether or not there a better way or tool available to accomplish this?<\/p>\n","protected":false},"author":0,"comment_status":"open","ping_status":"closed","template":"","question-category":[23],"question_tags":[],"class_list":["post-4411","question","type-question","status-publish","hentry","question-category-dns"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Delete old unused static records from DNS (AD) - WindowsTechno Community<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Delete old unused static records from DNS (AD) - WindowsTechno Community\" \/>\n<meta property=\"og:description\" content=\"We would like to delete all the unused resource records from our DNS server (Windows DNS server on Win2k16). This is an DNS integrated with domain controller. so the aging and scavenging options are available for dynamic records. Windows aging\/scavenging doesn&#8217;t touch static records. Basically I would like to delete everything that hasn&#8217;t been requested [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/\" \/>\n<meta property=\"og:site_name\" content=\"WindowsTechno Community\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/\",\"url\":\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/\",\"name\":\"Delete old unused static records from DNS (AD) - WindowsTechno Community\",\"isPartOf\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#website\"},\"datePublished\":\"2024-04-05T14:56:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/community.windowstechno.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Questions\",\"item\":\"https:\/\/community.windowstechno.com\/community\/questions\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Delete old unused static records from DNS (AD)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#website\",\"url\":\"https:\/\/community.windowstechno.com\/community\/\",\"name\":\"WindowsTechno Community\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/community.windowstechno.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#organization\",\"name\":\"WindowsTechno Community\",\"url\":\"https:\/\/community.windowstechno.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg\",\"contentUrl\":\"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg\",\"width\":335,\"height\":101,\"caption\":\"WindowsTechno Community\"},\"image\":{\"@id\":\"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Delete old unused static records from DNS (AD) - WindowsTechno Community","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/","og_locale":"en_US","og_type":"article","og_title":"Delete old unused static records from DNS (AD) - WindowsTechno Community","og_description":"We would like to delete all the unused resource records from our DNS server (Windows DNS server on Win2k16). This is an DNS integrated with domain controller. so the aging and scavenging options are available for dynamic records. Windows aging\/scavenging doesn&#8217;t touch static records. Basically I would like to delete everything that hasn&#8217;t been requested [&hellip;]","og_url":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/","og_site_name":"WindowsTechno Community","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/","url":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/","name":"Delete old unused static records from DNS (AD) - WindowsTechno Community","isPartOf":{"@id":"https:\/\/community.windowstechno.com\/community\/#website"},"datePublished":"2024-04-05T14:56:06+00:00","breadcrumb":{"@id":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/community.windowstechno.com\/community\/question\/delete-old-unused-static-records-from-dns-ad\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/community.windowstechno.com\/community\/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https:\/\/community.windowstechno.com\/community\/questions\/"},{"@type":"ListItem","position":3,"name":"Delete old unused static records from DNS (AD)"}]},{"@type":"WebSite","@id":"https:\/\/community.windowstechno.com\/community\/#website","url":"https:\/\/community.windowstechno.com\/community\/","name":"WindowsTechno Community","description":"","publisher":{"@id":"https:\/\/community.windowstechno.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/community.windowstechno.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/community.windowstechno.com\/community\/#organization","name":"WindowsTechno Community","url":"https:\/\/community.windowstechno.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg","contentUrl":"https:\/\/community.windowstechno.com\/community\/wp-content\/uploads\/2023\/02\/WindowsTechnoLogo.jpg","width":335,"height":101,"caption":"WindowsTechno Community"},"image":{"@id":"https:\/\/community.windowstechno.com\/community\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question\/4411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/types\/question"}],"replies":[{"embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/comments?post=4411"}],"wp:attachment":[{"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/media?parent=4411"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question-category?post=4411"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/community.windowstechno.com\/community\/wp-json\/wp\/v2\/question_tags?post=4411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}