Tuesday, August 14, 2018

Do you give management interfaces an (r)DNS entry?

If so, how do you manage/update them?

I've hacked a bit of python which reads directly from our NMS, uses netmiko to determine the management interface, and spits out resource records for the zone file like so:

ExampleIDF1 CNAME exampleidf1-v-10 exampleidf1-v-10 A 10.155.166.4 ExampleEdge CNAME exampleedge-ge-1-1-1 exampleedge-ge-1-1-1 A 10.250.21.86 

It then reloads bind for the zone and away we go. Is there an easier way?



No comments:

Post a Comment