How does the NameNode know which DataNodes belong to which r…

Questions

Hоw dоes the NаmeNоde know which DаtаNodes belong to which rack?