<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ImportDNS(self, config, token=None):
 """ Import a dns configuration file into the helper Note: This requires that you have the latest token. To get the latest token, run the GrabDNS command first. """

        if not token:
            raise Exception("You must have the dns token set first.")
        self.dns = CotendoDNS([token, config])
        return True