#NEWLINE# def add_a_record( self , fqdn , ip ) : #NEWLINE# #INDENT# '\n        Adds a resource record of type A to the DNS list.\n        Returns the new record created.\n\n        # Params:\n\n        - `fqdn`: full qualified domain name to add to the dns record.\n        - `ip`: server ip to add to the dns record.\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'a' : 'rec_new' , #NEWLINE# 'content' : ip , #NEWLINE# 'name' : self . _hostname ( fqdn ) , #NEWLINE# 'ttl' : self . ttl , #NEWLINE# 'type' : 'A' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . _do_request ( data = data ) #NEWLINE# new_record = response . get ( 'response' ) . get ( 'rec' ) . get ( 'obj' ) #NEWLINE# return response