Make ddns class into a resource