<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Easy way to remove stale DNS entries in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161449#M36877</link>
    <description>&lt;P&gt;If they are stale, then delete the manual entries... double, triple check though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2020 00:22:02 GMT</pubDate>
    <dc:creator>scottgelb</dc:creator>
    <dc:date>2020-11-24T00:22:02Z</dc:date>
    <item>
      <title>Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161427#M36873</link>
      <description>&lt;P&gt;We have two clusters that we have been running since 8.3.2P2 (now on 9.7P7) and we noticed that when we run "vserver services dns hosts show" there are a number of entries for servers that no longer exist in DNS and some entries that have the wrong name with the IP.&amp;nbsp; Is there an easy way to force the ones that no longer have a DNS entry to be deleted or do we have to manually delete all of the entries that are stale/incorrect?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:44:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161427#M36873</guid>
      <dc:creator>Stormont</dc:creator>
      <dc:date>2025-06-04T10:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161438#M36874</link>
      <description>&lt;P&gt;It may be easier to flush the entire hosts cache. &amp;nbsp;"set adv" mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vserver services name-service cache hosts forward-lookup delete-all -vserver svmname&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;vserver services name-service cache hosts reverse-lookup delete-all -vserver svmname&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 22:03:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161438#M36874</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2020-11-23T22:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161446#M36875</link>
      <description>&lt;P&gt;This is where things really get weird.&amp;nbsp; When I go into advanced mode and run "&lt;STRONG&gt;vserver services name-service cache hosts forward-lookup show"&amp;nbsp;&lt;/STRONG&gt;it lists a number of servers, however the outdated servers that show up when running "vserver services dns host show" aren't in that list.&amp;nbsp; I am the sole NetApp administrator and I know that I never created entries for the servers via "vserver services dns host create", so I'm really not sure where these entries came from or how to get rid of them (short of manually deleting each one via "vserver services dns hosts -delete").&amp;nbsp; Maybe an earlier version of OnTap did something differently?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 00:12:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161446#M36875</guid>
      <dc:creator>Stormont</dc:creator>
      <dc:date>2020-11-24T00:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161448#M36876</link>
      <description>&lt;P&gt;These sound like manual entries in the hosts table... "vserver services dns hosts create" will add entries .. they were manually added so to remove them you do need to delete them to rely on DNS instead....well one more check, dependent on ns-switch.. depending on the output of "vserver services ns-switch show -vserver svmname -database hosts"... if the output has dns before files, or if files is missing, then the manual entry doesn't matter as long as that same host is also in dns.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 00:20:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161448#M36876</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2020-11-24T00:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161449#M36877</link>
      <description>&lt;P&gt;If they are stale, then delete the manual entries... double, triple check though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 00:22:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161449#M36877</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2020-11-24T00:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161450#M36878</link>
      <description>&lt;P&gt;The results of that command are below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oriole::&amp;gt; vserver services ns-switch show -vserver oriole-svm -database hosts&lt;/P&gt;
&lt;P&gt;Vserver: oriole-svm&lt;BR /&gt;Name Service Switch Database: hosts&lt;BR /&gt;Name Service Source Order: files, dns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One example that really stands out is an entry that shows an address associated with our HAProxy and a hostname of an actual website hosted via that device; neither of them have any NetApp mounted storage.&amp;nbsp; We never added the address manually, so where did it come from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same deal with there being entries for the IP addresses associated with switches in our network that have no network mounted storage, but they show up in the hosts section (and were not added as there has never been a reason to add them).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 00:38:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161450#M36878</guid>
      <dc:creator>Stormont</dc:creator>
      <dc:date>2020-11-24T00:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161451#M36879</link>
      <description>&lt;P&gt;Got it so the hosts entry will be the first used on match since "files" is first... you could set dns first then bypass the entries if you don't want to delete them right away, as long as dns has a record for the manual entry. &amp;nbsp;It looks like something added those...maybe automation outside of the admin or something?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 00:41:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161451#M36879</guid>
      <dc:creator>scottgelb</dc:creator>
      <dc:date>2020-11-24T00:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161492#M36886</link>
      <description>No, we definitely don't have any sort of automation setup.  If this was a leftover artifact from some previous version, we can clean them up, but I wanted to try and see if there is a way to prevent that from happening or to automate the process to cleanup entries.&lt;BR /&gt;&lt;BR /&gt;________________________________&lt;BR /&gt;&lt;BR /&gt;Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error.</description>
      <pubDate>Tue, 24 Nov 2020 14:05:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161492#M36886</guid>
      <dc:creator>Stormont</dc:creator>
      <dc:date>2020-11-24T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to remove stale DNS entries</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161521#M36891</link>
      <description>&lt;P&gt;Hi Stormont,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know you mentioned that you started using this Cluster on ONTAP 8.3.2P2; was this Cluster migrated from 7-mode or pre-8.3? The reason I ask is there was significant changes to how we handle name-services from 8.2 to 8.3, which could have left the stale entries. Dynamic DNS was also introduced in ONTAP 8.3.1; not sure if that was ever enabled. It would be difficult to clearly identify where the stale DNS entries came from without digging through historical ASUP's to see whom and when they were added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I definitely recommend using&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11259"&gt;@scottgelb&lt;/a&gt;&amp;nbsp;recommendations to remove the stale entries to avoid interruptions to access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an in-depth technical report covering name-services:&amp;nbsp;&lt;A href="https://www.netapp.com/pdf.html?item=/media/19686-tr-4379.pdf" target="_self"&gt;TR-4379 Name Services Best Practices Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Team NetApp&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 04:38:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Easy-way-to-remove-stale-DNS-entries/m-p/161521#M36891</guid>
      <dc:creator>ttran</dc:creator>
      <dc:date>2020-11-25T04:38:18Z</dc:date>
    </item>
  </channel>
</rss>

