Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Networking Fundamentals

You're reading from   Networking Fundamentals Develop the networking skills required to pass the Microsoft MTA Networking Fundamentals Exam 98-366

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781838643508
Length 510 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Gordon Davies Gordon Davies
Author Profile Icon Gordon Davies
Gordon Davies
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Section 1: Network Infrastructure
2. Differentiating between Internets, Intranets, and Extranets FREE CHAPTER 3. Understanding Local Area Networks 4. Understanding Wide Area Networks 5. Understanding Wireless Networking 6. Network Topologies - Mapping It All Out 7. Section 2: Network Hardware
8. Switches and Switching - Forwarding Traffic on a Local Network 9. Routers and Routing - Beyond a Single Network 10. Media Types - Connecting Everything Together 11. Section 3: Protocols and Services
12. Understanding the OSI Model 13. Understanding TCP/IP 14. Understanding IPv4 15. Understanding IPv6 16. Understanding Name Resolution 17. Network Services 18. Section 4: Mock Exams
19. Mock Exam 1
20. Mock Exam 2
21. Assessments 22. Other Books You May Enjoy

The hosts file

The hosts file is a text file that can be used to provide a static form of name resolution that only impacts the host that the hosts file is stored on. On a Windows device, the file is stored at %systemroot%\System32\drivers\etc\:

Figure 13.38: Location of the hosts file

Since this is a straightforward text file, it can be edited using any standard text editor, such as Notepad; however, to be able to edit it, you need to run Notepad as an administrator. Once we have the file open, we can configure it accordingly.

The file contains a number of comments and examples of how to configure the file. Each of these is commented out by using a #. Any text that follows a # is treated as a comment and not actioned. From the preceding examples, we can see that the IP address is on the left-hand side and the FQDN is on the right-hand side.

The concept of hosts files goes back...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image