How is a custom.local assigned to each IP in my local area network?

If you have mdns installed and active on your computers, you'll be able to do host1.local, host2.local, etc..

See this: