replacing deprecated -dns by --dns