Resource Page CIS 2153 Syllabus
Chapter Lesson Notes: 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
Chapter 2 Lesson Notes
The Domain Naming System: Introductory Concepts and Procedures
- The difference between DNS and NetBIOS
- NetBIOS was designed for small single-segment LANs which are
broadcast-based as shown in Figure 2-1 on page 47. This had its drawbacks, which include
the following:
- The volume of traffic increased as computers on each network segment
were added.
- NetBIOS-based protocols, such as NetBEUI, are not routable.
- Forwarding NetBIOS broadcasts across routers (or Brouters) would have
a profoundly negative impact on network performance.
- NetBIOS has a naming scheme that is "flat," unlike DNS,
which uses a hierarchical naming system (see below).
- The NetBIOS and WinSock Interfaces
- The Flat NetBIOS Namespace
- The analogy found on page 48 of the textbook describes a flat naming
scheme; that is, if everyone in the world had only one name, like John, there would be
confusion between two people with that same name. But, if there were only that one name
available, it would be very difficult to ensure a unique first and last name for every
individual.
- The flat naming scheme offered by NetBIOS causes limitations in
network naming structures.
- The NetBIOS and WinSock Interfaces
- DNS uses a hierarchical naming system, similar to a sort order of a
telephone book. The primary sort order is by last name, then first name, then middle
initial, then phone number.
- DNS uses one of two Session layer interfaces: The Windows Sockets
(WinSock) interface or the NetBIOS interface. NetBIOS communications reach their
destination based on the NAME of the computer.
- The TCP/IP Protocol stack (which includes the Transmission Control
Protocol and Internet Protocol) uses the TCP/IP address of a computer. It does not rely on
the NetBIOS name for communication. WinSock uses this communication method, relying only
on the TCP/IP address of a computer, not the NetBIOS name.
- NetBIOS over TCP/IP or NetBT
- NetBT (NetBIOS over TCP/IP) allows NetBIOS aware applications to work
over the routable TCP/IP protocol. NetBIOS computers are only aware of the computer name,
and NetBT allows for a resolution from NetBIOS name to TCP/IP address, thus masking the
underlying protocol from the unaware application. (See Figure 2-2 on page 50.)
- The Windows Sockets (WinSock) Interface
- Programs to be used on a TCP/IP network must be specifically written
to use WinSock.
- These programs only require an IP address to communicate with another
computer on their network.
- Since WinSock uses numbers, which is more efficient than using names,
there needed to be a way to help us remember those numbers. Host name resolution solves
this problem by converting an IP address to a name (such as 24.12.145.101 to
www.cripliver.com).
- The Bottom Line on the difference between NetBIOS and WinSock:
- NetBIOS is based solely on a computers NetBIOS name.
- WinSock is based on a computers TCP/IP address.
- Before Windows 2000, all core networking functions were based on
NetBIOS.
- Windows 2000 depends on DNS for its name resolution, which increases
its importance on this exam.
- The DNS Namespace
- root domain:
At the top is the root domain, represented by
either a dot (a period) or an empty space. Note that both will be accepted on your exam,
but the dot is more commonly used.
Top-level domain: Under the root are the top-level domains,
such as .com, .net, .org, .edu. Each top-level domain hopes to represent your business the
best, although you are free to choose among them. Edu is a very common domain for a
university, for instance. Table 2-1 on page 52 of your text includes a list of top-level
domain names and their presumed members.
Second-level domain name: This name distinguishes your
organization from all others, such as Microsoft (.com) or Cripliver (.com) or Valpo
(.edu). Figure 3 on page 53 shows the DNS hierarchy.
Teaching Tip
Reading a domain name is like reading
a street address backwards. When your mother sends you a birthday card, the mailman reads
your address backwards, beginning with the zip code. Then he reads the state, city,
street, number on the street, and finally your name. You may have noticed how your mailbox
receives mail addressed to OCCUPANT. This isnt your name, but since the other
address information can locate your house well enough, the mailman can deliver such mail
to your door.
The root, top-level, and second-level domains are centrally managed
by DNS. You must register your second-level domain name through a domain registrar such as
Network Solutions (www.networksolutions.com).
As the DNS administrator in your company, you are responsible for all
domains beneath your second-level domain name. You must also maintain at least two DNS
servers that are authoritative for your second-level domain. "Authoritative"
means that your DNS servers have the authority to answer questions about host name
resolutions for your domain.
Beyond the Basics
It has become popular in todays
economy for individuals with little or no network experience to "park" a domain
name with a domain registrar, such as Network Solutions. These individuals later sell the
domain name to the highest bidder for a substantial profit. For instance, a person might
purchase the domain name of www.PeeWeeHerman.com in the hopes that PeeWee Herman will run
for President. If Mr. Herman does indeed run for President, the owner of that domain could
sell it for millions of dollarsreceiving an ROI (return on investment) of perhaps a
million percent!
"Parking" a domain name simply means that you want to own
the domain name, but you have no DNS servers to authorize it. Until you have the DNS
servers, you cant actually use that name on the Internet. You may see in your
"travels" on the Internet, however, a site that has one lonely page that reads
"This site for sale. Write to thisperson@somplace.com to inquire."
To see what domain names are available, you can visit
www.networksolutions.com and enter a possible name in the search box. To find out who owns
a domain name that is already taken, visit www.networksolutions.com/cgi-bin/whois/whois
for the name of the owner and the IP address of their DNS servers.
Discussion Point
Refer to the Scenarios and Solutions table on
page 54 of your book for FAQs about registering domains.
Domain and Host Name Specifications
- Fully Qualified Domain Names, or FQDNs
- An FQDN is the combination of a machines host name and its
domain name. An example is naming your PeeWeeHerman.com site with www. It is important to
understand that it is not a requirement to use www for your FQDN to appear on the World
Wide Webits just an easier way of identifying the site.
- The FQDN contains a label that includes a domain or host name and
periods (dots). Each label is separated by a dot. Each label can contain up to 63 bytes
(not to be confused with 63 characters).
- The only legal characters supported in a Windows 2000 domain name are
A-Z, a-z, 0-9, and the dash (-). Note that the underscore is not supported, and Windows
2000 will replace any underscores it finds with dashes (from pre-Windows 2000 NetBIOS
names).
Planning Domain Names for an Organization
- Using the same domain name for both Intranet and Internet resources
- Maintain two zones
: Data security is paramount. Create one
internal DNS Zone and a separate external DNS Zone. Intranet users will point only to the
internal zone, and Internet users will point to the external zone. Maintaining two zones
allows you to point to the same address (eg:
www.tacteam.net) from two separate locations, depending on whether the request is Intranet or
Internet.
Implementing the same domain name for Internal and External resources
- Mirror the external resources internally. This way, your internal
users can have access to the same information that is located on the external web server.
(See Figure 2-4 on 60.)
- This decision rarely comes from you, the administrator, but is
delegated to you to implement.
Using different domain names for Intranet and Internet resources
- Using different domain names for the Intranet and Internet is an
easier scenario to set up since you dont have to worry about keeping different zone
databases for the same domain name.
- Choose an easy-to-remember, intuitive name for your external domain,
but your internal name can relate more to your company name or product. An example of an
Internet name would be: widgets.com, and an Intranet name: widgetscorp.com (see Figure 2-5
on page 61).
Naming your Subdomains
- Subdomains are based on the geographical location or business unit
- Naming Domains based on business units
- For example: sales.stuff.com, marketing.stuff.com, or hr.stuff.com,
each of which contains the resource for the Sales, Marketing and Human Resources division
of the Stuff Company
- Disadvantages of this strategy are that when the names of these
resources change, your entire domain names must change.
- Naming Domains based on geography
- Examples could be west.stuff.com, east.stuff.com, north.stuff.com,
Europe.stuff.com, etc. Notice that these names are better suited than losangeles.stuff.com
or boston.stuff.com because locations of offices might change.
- Root Names Servers
- The root name server must be in place before you can install Active
Directory. It is authoritative for your second-level domains.
- The root name server can contain delegations for your subdomains. A
delegation informs DNS clients which DNS servers are authoritative for your subdomains.
Zones of Authority
- The zone database file is the actual information about domains and
what they contain.
- The zone database is located at %systemroot%\system32\dns.
- Forward lookup zones
- Forward lookup zones allow DNS clients to resolve a host name to an
IP address.
- Contiguous and noncontiguous zones (see Figure 2-6 on page 67):
Notice that the Microsoft.com domains are contiguous (next to each other). The MSN domains
are contiguous as well. However, the Microsoft and MSN zones are not contiguous.
- Zones allow for delegation of responsibility for maintenance of
resources in that zone, and not necessarily by any one user of that zone since not all
users are accomplished in DNS maintenance.
- Zones receive their names from the "root" or highest level
domain contained in that zone.
- It is important to know the difference between a zone and a domain
for the exam, although the terms are often used interchangeably.
- A zone can contain multiple contiguous domains, and a single DNS
server can host multiple zones.
- Reverse Lookup Zones
- A reverse lookup zone allows the DNS client to resolve an IP address
to a host name.
- Example: IP address 192.168.1.3 would be "translated" to
the host name, such as PAYROLL1.
- Forward lookup zones are similar to a phone book (you know the name,
you need the number), whereas a reverse lookup is the opposite (you know the phone number,
but not the individuals name who pays the bills for that phone number. You can
imagine how laborious looking up the numbers this second way would be when the phone book
is arranged alphabetically by name and not number. )
- The in-addr.arpa Domain
- The in-addr.arpa domain indexes host names based on Network IDs and
makes reverse lookups more efficient.
- To create a reverse lookup zone, use the Windows 2000 Management
Console using the following steps:
- Right-click on the computer name in the console, then select New
Zone.
- The New Zone Wizard walks you through the process of either new
forward or new reverse lookup zones (see Illustration ill02-14.tif).
- The Wizard will ask what type of zone you want. Select Reverse Lookup
Zone.
- The Wizard will then ask for the Network ID and will automatically
create a zone database file based on your answers. See the illustration within Exercise
2-1 on page 71.
- The reverse lookup zone database file you create is located in a
subfolder off the system32 folder.
- The name of the reverse lookup zone database file is the network ID
in reverse with the .dns extension. Example: the reverse lookup zone for 192.168.1.0: The
name of the reverse lookup zone would be 1.168.192.in-addr.arpa.dns.
- Queries are examined and executed from right to left, just as they
are with forward lookup zones.
- It is a good habit to create a reverse lookup zone even if one is not
required, as this will prevent "server not found" errors when performing an
nslookup query.
Installing the Windows 2000 DNS Server
- You can install the DNS Server at the time you install the operating
system.
- If you install Active Directory, you will be required to install the
DNS Server at that time if there is no other Windows 2000 domain controller online for
that domain.
- Do not install Windows 2000 DNS Server on a live, production network
unless your network administrator confirms that it will not create problems with the
existing network infrastructure.
- To install the Windows 2000 DNS Server, perform Exercise 2-1 on page
71 of the main text.
Class Exercise: Creating a Forward Lookup Zone
- After the DNS Server is installed, several changes are made to your
system, including:
- Adding the DNS Management Console to the Administrative Tools menu
- Adding the %systemroot%\system32\dns directory to your boot partition
- Adding numerous counters to your System Monitor
- After you install the DNS Server, there are no zones yet. To create
the zones, perform the steps given in your main text in Exercise 2-2 on page 73.
Beyond the Basics
When creating a forward lookup zone, be
cognizant of what view you are in. Click the VIEW menu and notice the Advanced and
Filter
views. The Advanced view will add the Cached Lookups folder to your view. The
Filter
setting enables you to filter your view by name. Be careful not to assume
that youre seeing everything as a filter may have been added. You may also limit the
number of items you want to see for each item under Filters Display Limit tab.
Class Exercise: Creating a Reverse Lookup Zone
- To create a Reverse Lookup Zone, perform the steps in Exercise 2-3 on
page 78 of your main text.
Resource Records
- Resource records contains data about the resources contained in the
domain.
- The resource record used most often is called the A, or Host Address
record. This record contains the host name to IP address mapping that most DNS clients
will ask for when attempting to resolve a host name to an IP address.
- Other information a zone database can contain is described in Table
2-2 on page 82 in the main text. Each resource Record type contains the information
necessary to resolve queries for resolution.
- A single computer can have multiple records of different types.
Example: Your web servers host name on the Internet is probably called
"www," but internally, you might want to call that server BigOne and then create
a CNAME record for "www." Both records for BigOne and www would map to the same
IP address.
- To populate your reverse lookup zones, use the Pointer (PTR) record.
This contains the IP address to host name mappings required to answer reverse lookup
requests.
- You can export the resource record information stored in your zone
databases to a comma-delimited file for review within Excel or Access.
Class Exercise: Adding Host Records to a Forward Lookup Zone
- To add host records to a forward lookup zone, perform the steps in
Exercise 2-4 on page 84 of your main text.
It is important to click the Refresh button frequently so as not
to assume a setting did not "take."
Class Exercise: Adding a Pointer Record to a Reverse Lookup Zone
- To add a pointer record to a reverse lookup zone, perform the steps
in Exercise 2-5 on page 86 of your main text.
Zone Delegation
- Zone delegation is like "passing the buck" in order for
another DNS server to answer DNS queries for a particular zone.
- Zones can be delegated to Secondary DNS Servers or Primaries.
Creating Delegations
- Create a delegation on a DNS server that is authoritative for the
zone where the queries will be answered.
- You can create delegations for any server in a domain that is
authoritative.
Glue Records
- In Windows NT 4.0, the only information you needed to create an NS
record was the FQDN of the machine to be included in the referral. This necessitated a
Host (A) Address record to allow for the forward lookup.
- This Host (A) record is referred to as a glue record because it
"glues" the name servers host name to an IP address.
- When you split your domains into subdomains, you must include
delegation information on all parent domains, including NS records for authoritative
servers and their glue records.
- A lame delegation is when the NS record points to a server that does
not contain a zone database file to the zone its pointing to.
- The Delegation Wizard walks you through the process of creating
delegations for your domains and subdomains.
Creating a Delegation Using the Delegation Wizard
- To create a delegation using the Delegation wizard, perform the steps
in Exercise 2-6 on page 89 of your main text.
Insider Information
When you type an IP address in any "dotted" entry box of a
window in Windows, you may avoid frustration if you make a habit of typing the
"dots" when required. If the IP address you want to enter has three digits in
each of its octets, then the interface advances you to the next octet without any problem.
(For instance 192.123.124.125 can be typed as 192123124125 and the interface knows where
to put the numbers.) However, if your IP address is 192.123.1.2, then typing 19212312 will
yield 192.123.12 and the computer will beep saying the IP address is not complete. By
typing the dot where needed, the computer will know youre finished typing in that
octet and will advance to the next.
- Zone Transfer
- For fault tolerance, DNS was designed to use two DNS servers for
answering queries.
- A standard primary zone is the only read/write copy of the zone
database file.
- A standard secondary zone is a read-only copy of the zone database
file.
- The primary and secondary zones are contained on Primary and
Secondary DNS servers for those zones.
- To copy the Primary zone file to the Secondary DNS server, use a zone
transfer.
- Methods of Zone Transfer
- Zone transfers are "pull" technology because the Secondary
DNS server initiates the zone transfer process.
- The Secondary DNS server will initiate a zone transfer:
- When a Primary DNS server sends a "notify" message to the
Secondary DNS server
- When the Secondary DNS server boots up
- When the Secondary DNS servers refresh interval has expired
(see Figure 2-8 on page 94)
- The Secondary DNS server initiates the actual zone transfer. The
Secondary DNS server sends a "pull" request and the Primary DNS server sends the
Start of Authority (SOA) record.
- The SOA record is always the first record created on a DNS server
authoritative for any particular zone.
- The SOA record contains information about the refresh interval, which
is the time the Secondary DNS server waits before asking for another update to its zone
database file.
- When a new zone is created, it has a serial number of 1, then each
time a change is made to the zone database on the Primary DNS server, the serial number is
incremented by 1. The Secondary DNS servers zone serial numbers are updated as well,
so the Secondary number always matches the Primarys number.
- If the Primary DNS servers serial number is larger than the
Secondarys, the Secondary sends one of two types of queries that begin the zone
transfer process:
- AXFR (Entire Zone Transfer): Secondary DNS servers that only support
the AXFR query type will receive a copy of the entire zone database.
- IXFR: Windows 2000 Secondary servers are able to request information
about the serial number of the zone database they currently own. These servers issue IXFR
queries, which allow for incremental zone transfers. Incremental zone transfers will send
to the Secondary DNS server only those records that have changed since the last zone
transfer. Doing this makes the update process more efficient and allows the DNS
synchronization to complete with less overhead.
- Windows 2000 DNS Servers versus downlevel DNS servers
- Windows 2000 DNS servers can respond to both IXFR and AXFR requests.
- A Windows 2000 DNS Server that is acting as a Secondary can send both
AXFR and IXFR queries to allow the Windows 2000 DNS Server to be flexible in networks that
have a mix of Windows 2000 and downlevel DNS servers.
- The entire zone database is sent despite receiving an IXFR request:
- When the sum of the changes is larger than the entire zone
- When the age of the Secondarys zone database exceeds the number
of changes traced in the Primarys change log
- When the DNS server doesnt know what to do with an IXFR request
- Masters, Secondaries, and Slaves
- The server that is transferring the zone file to another server is
called the Master server.
- The server receiving the zone files can be called either a Slave
server or a Secondary server, although the term secondary is preferable because the term
Slave DNS server has another meaning that refers to an inability to perform recursion for
DNS clients.
- The Primary DNS server can also act as a Secondary for another zone
(see Figure 2-9 on page 97).
- There are three reasons to have a Secondary DNS server:
- Redundancy
- Access time for remote locations
- Load balancing
- The Retry Interval
- When the Primary DNS Server is not available when the Secondary sends
its pull request, the SOA record includes information about a Retry Interval. This Retry
Interval defines the period of time the Secondary should wait until sending another pull
request message.
- Be sure to set the Retry Interval shorter than the Refresh Interval,
or the Refresh Interval will just take over before the Retry has a chance to do its job.
- Compatibility of DNS Server Versions
- Incremental Zone Transfers: Beware of bandwidth consumption on those
downlevel DNS servers which do not support incremental zone transfers.
- Fast Transfers: The method of zone transfer that allows multiple
records to be included in a single message. This is available only in Windows 2000 DNS
Servers.
- WINS and WINS-R Records: These resource records allow a DNS server to
perform forward and reverse lookups by referring to a WINS server, but not all servers
support the Microsoft-only technology of WINS and WINS-R. Check the "Do Not Replicate
This Record" box to prevent these records from being transferred.
- Third-Party Transfers to Windows 2000 DNS Servers: Third-party
products may support resource record types that are not supported by Windows 2000 DNS
Servers, and Windows 2000 will drop the record and continue with the zone transfer
process.
- Refer to Table 2-3 on page 99 for a summary of the compatibility
issues you may run into when administering a mixed DNS server environment.