add a switch for dns