Skip to content

Clean up orphan DNS records #25

Open
cho00013 opened this issue Mar 28, 2022 · 2 comments
Open

Clean up orphan DNS records #25

cho00013 opened this issue Mar 28, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cho00013
Copy link
Contributor

There are handful of A, PTR, and TXT records that exist in the Route 53 zone that do not have corresponding EC2 instances.
Also, I did few spot check and noticed several A/PTR records that are orphaned (meaning, there's no EC2 instance associated). Again, I assume that these were due to the code's inability to delete the record for whatever reason. I don't have a good feel as to why that's the case.

ite.das.rm.census.gov. Zone

  • ip-10-191-29-64.ite.das.rm.census.gov TXT
  • ip-10-191-29-172.ite.das.rm.census.gov A
  • ip-10-191-28-97.ite.das.rm.census.gov TXT
  • ip-10-191-28-27.ite.das.rm.census.gov A
  • ip-10-191-18-62.ite.das.rm.census.gov A
  • ip-10-191-18-33.ite.das.rm.census.gov TXT
  • ip-10-191-18-112.ite.das.rm.census.gov A

Few PTR zones that I checked by hand but not comprehensive.

@cho00013 cho00013 added the bug Something isn't working label Mar 28, 2022
@cho00013
Copy link
Contributor Author

From @badra001

I did some cleanup already, but yeah, we need a script to handle it. I pulled DDB entries and extracted stuff with JQ, but it may be easier to build some python for that.

@cho00013
Copy link
Contributor Author

Possible orphan records
ip-10-191-18-112.ite.das.rm.census.gov A Simple - 10.191.18.112
ip-10-191-18-62.ite.das.rm.census.gov A Simple - 10.191.18.62
ip-10-191-28-27.ite.das.rm.census.gov A Simple - 10.191.28.27
ip-10-191-29-79.ite.das.rm.census.gov A Simple - 10.191.29.79

Sign in to join this conversation on GitHub.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant