Forum Discussion

Mohamed_Ismail1's avatar
Mohamed_Ismail1
Icon for Nimbostratus rankNimbostratus
Mar 07, 2016

Can we add/Remove DNS zones & resource records via TMSH in GTM?

If yes please provide the CLI command for remove the zone(Include all records in that zone). GUI : DNS -->Zones--> Zone runner-->Zone list

 

  • Could we use bash like this to (for example: add) RR to a ZoneRunner zone:

    printf 'server 127.0.0.1\nupdate add www.example.com 86400 A 1.2.3.4\nsend\n' | nsupdate
    

    and to delete it:

    printf 'server 127.0.0.1\nupdate delete www.example.com 86400 A 1.2.3.4\nsend\n' | nsupdate
    

    or even (this will delete all RRs for 😞

    printf 'server 127.0.0.1\nupdate delete www.example.com\nsend\n' | nsupdate
    

    This would also make it possible to add/delete CAA RRs (not supported by ZoneRunner currently) to a zone without having to freeze and thaw the zone (K7032😞

    printf 'server 127.0.0.1\nupdate add example.com 86400 CAA 0 issue "letsencrypt.org"\nsend\n' | nsupdate
    

    Or would that interfere with ZoneRunner?

    • JRahm's avatar
      JRahm
      Icon for Admin rankAdmin

      You can manage the named files via tmsh bash utility indirectly, or via a tmsh script / iApp. Would need careful planning following the guidance in the knowledge base article Brad posted above. I discussed this as part of this week's Post of the Week video.

       

    • JRahm's avatar
      JRahm
      Icon for Admin rankAdmin

      You can manage the named files via tmsh bash utility indirectly, or via a tmsh script / iApp. Would need careful planning following the guidance in the knowledge base article Brad posted above. I discussed this as part of this week's Post of the Week video.