As it is lab, we can add Ip address of agent to master hosts file.But if I have 1000 agents(partly windows and Linux machines), we can't add each and every agent to hosts file of master.How to manage there? I am from a windows background, please treat me as layman and guide me.
You should add the agent machines to DNS, so you can manage name - IP mappings via DNS.