What is the topology determined by the meteric on X given by d(x,y)=1 for x doesnt equal y and d(x,y)=0 for x=y?

for me it looks the discrete topology. Is it right?

can we define a meteric on a given set X so that the associated meteric topology is trivial.!