Break up script into pieces, handle the DNS update