fix switch bug when two connection exists and support config dns manually