The equilibria and periodic orbits around a dumbbell-shaped body