CCNA LAN Question

Just a fundamental LAN network questions as I am studying CCNA course

Computer A and B both are connected to a normal L2 switch and turned on. there is no DNS server configured (it shouldn't matter as it is pure L2 connection?)
what are the setups computer A pinging computer B by the name at the very first time? is the switch going to broadcast computerB's mac address? if yes, how would computer A know what is the computer B's mac?  
just trying to understand the principle of LAN communication.
It would be great if I can get some articles to read.

Thanks
jzrobbieAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JustInCaseCommented:
what are the setups computer A pinging computer B by the name at the very first time?
Nothing, since there is no way to resolve DNS (If static DNS resolution is not provided). Process will fail to resolve hostname to IP address relation.
is the switch going to broadcast computerB's mac address?
No, since IP address will not be resolved in some way (This is purpose of DNS), IP address must be known, otherwise device will not be able to create ARP request.
f yes, how would computer A know what is the computer B's mac?  
Name to IP address relationship must be resolved first. MAC address can be resolved by ARP only if IP address of host is known.

Name resolution can be provided statically without DNS server IP address by modifying hosts file (Windows - c:\Windows\System32\Drivers\etc\hosts,;linux - /etc/hosts)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.