SlideShare uma empresa Scribd logo
1 de 35
Web Server Administration
Chapter 4
Name Resolution
Overview
 Understand the domain name service (DNS)
 Identify the components of DNS
 Configure zone files
 Install and configure DNS in Linux
 Understand name resolution in Windows
 Install and configure DNS in Windows 2000
and 2003
 Troubleshoot DNS
 Use WINS to resolve computer names in
Windows
Understanding the DNS
 DNS is used to map host names to IP addresses
on the Internet
 Also called name resolution or address resolution
 Whenever a host is added, a configuration file has to be manually
changed
 A host represents a service on a server such as FTP or a Web
server
 There can be many hosts on a single computer
 A Microsoft Windows 2000 or Windows 2003
network uses DNS to resolve computer names
on a LAN
 DNS in Windows is designed to be dynamic - as computers are
added to the network, DNS automatically changes
Clients
 On your PC, the TCP/IP configuration
contains the address(es) of your DNS
server(s)
 Whenever you use a URL, whether in a
browser, or a utility such as ping, DNS
servers are used
Domain Namespaces
 The root level domain is "."
 Significant in creating DNS files
 Top-level domains include com, org, fr
 More have been added in 2000
 Second-level domains are often owned by
companies and individuals
 microsoft.com, devry.edu
 A subdomain is a further division of a second-
level domain
 For devry.edu, there is phx.devry.edu
 Not common
Domain Namespaces
 Second-level domains, such as devry.edu
have control over naming within their domain
 Create hosts such as www, ftp, bb
 A name such as www.devry.edu is a fully
qualified domain name (FQDN)
 We could create subdomains such as phx
 www.phx.devry.edu
New Top-Level Domains
 .biz - businesses
 .info - anyone can register
 .name - must register first and last name
 .pro - for professionals only
 must provide proof
 .aero, .museum, .coop are controlled by
organizations
Host Names
 The first portion of a URL is typically a host name
 Typically different from the name of the computer
 Many hosts can be associated with the same Web server
How DNS Works
DNS Components
 Name server – also known as DNS
server
 supports name-to-address and address-to-
name resolution
 Name resolver – also called DNS client
 Can contact DNS server to lookup name
 Used by browsers, e-mail clients, and
client utilities such as ping and tracert
DNS Servers that Define the
Internet
 Primary and secondary servers store
the host names used on the Internet
 Caching and forwarding servers search
the Internet for host names
Primary and Secondary Servers
 Primary Server
 Defines the hosts for the domain

Maintains the database for the domain
 It has authority for the domain
 Secondary Server
 Gets data from primary server
 Provides fault tolerance and load distribution
 Required for Internet domains
Primary and Secondary Servers
 If you use DNS, you will often work with your
ISP
 In a simple environment, the ISP will have the
primary and secondary DNS servers
 You contact them for changes
 You can also split the servers
 ISP has primary, you have secondary
 You have primary, ISP has secondary
Primary and Secondary Servers
 ISP maintains DNS
 You have to send changes to ISP
 You have the secondary server which
gets updates from the primary server
 Your users reference your secondary
server which is faster
Primary and Secondary Servers
 You have complete control over DNS
 You can make changes whenever you
want
 If your primary DNS goes down, the
secondary will continue to function (but
not indefinitely)
Resolve Host Names
 Caching Server
 Resolves host names
 Caches (saves) the results
 Automatically installed when DNS is installed
 No configuration necessary
 Forwarding Server
 Caching server that has access to the Internet and
forwards traffic from other caching servers
Caching and Forwarding Servers
Zones
 A zone is a part of the domain namespace
 For a domain as small as technowidgets.com,
the domain name represents a single zone
 For large organizations (such as IBM),
subdomains can be divided into separately
maintained zones
 Each zone typically has a separate DNS
Zones
 Zones must be contiguous
 admin.devry.edu can be combined with devry.edu
 admin.devry.edu cannot be combined with
student.devry.edu
 There must be one primary DNS server in
each zone (plus a secondary server)
 Each zone can have multiple secondary DNS
servers
Zone File Configuration
 Forward Lookup
 These zones contain entries that map
names to IP addresses
 Reverse Lookup
 These zones contain entries that map IP
addresses to names
Common DNS Records
DNS record Function
Address (A) Associates a host to an IP address.
Canonical name
(CNAME)
Creates an alias for a specified host.
Internet (IN) Identifies Internet records; precedes most DNS record
entries.
Mail Exchanger (MX) Identifies a server used for processing and delivering e-mail
for the domain.
Name server (NS) Identifies DNS servers for the DNS domain.
Pointer (PTR) Performs reverse DNS lookups. Resolves an IP address to a
host name.
Start of Authority
(SOA)
Identifies the DNS server with the most current information for
the DNS domain.
DNS Configuration in Linux
 /etc/named.conf describes the files that
configure the zones
 There are two primary files that it describes
 Forward lookup is described by
named.technowidgets.com

It has the host names and how to handle e-mail
 Reverse lookup is described by named.0.168.192

Can be necessary for e-mail (SMTP) and security
programs
/etc/named.conf
Creating a DNS for the technowidgets.com
domain
 Default setup is for localhost 127.0.0.1
 In named.conf add the following line
zone "technowidgets.com" {
type master;
file “named.technowidgets.com”;
};
 This allows technowidgets.com to be resolved
by /var/named/named.technowidgets.com
 There can be multiple domains in a single
named.conf file
/etc/named.conf
 Also, we can add the following line
zone “0.168.192.in-addr.arpa” IN {
type master;
file “named.0.168.192”;
};
 This allows for reverse lookup for the domain
 It uses all or part of the 192.168.0.0 network
/var/named.technowidgets.com
$TTL 86400
@ IN SOA web1.technowidgets.com. admn.technowidgets.com. (
2002072100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS web1
IN A 192.168.0.100
IN MX 10 mail.technowidgets.com.
web1 IN A 192.168.0.100
www IN CNAME web1
research IN A 192.168.0.150
IN MX 10 mail
mail IN A 192.168.0.200
named.0.168.192
$TTL 86400
@ IN SOA web1.technowidgets.com. admn.technowidgets.com. (
2002072100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS web1
100 IN PTR web1.technowidgets.com.
150 IN PTR research.technowidgets.com.
200 IN PTR mail.technowidgets.com.
Starting DNS in Linux
 To start DNS
 /etc/rc.d/init.d/named start
 To restart DNS
 /etc/rc.d/init.d/named restart
 To stop DNS
 /etc/rc.d/init.d/named stop
 Make DNS start when you boot Linux
 Add the command to start DNS to /etc/rc.d/rc.local
Configuring Client DNS in Linux
 Modify /etc/resolv.config
 The following line directs the client to
use the DNS server at 192.168.0.100
 nameserver 192.168.0.100
 The following line associates this
computer with the technowidgets.com
domain
 domain technowidgets.com
Test the DNS
 Configure a Windows PC to use the DNS server
 Start->Settings->Network and Dial-up Connections
 Right-click on Local Area Connection and select
Properties
 Select Internet Protocol (TCP/IP) and click on
Properties
 Change DNS to 192.168.0.10
 Reboot and ping www.technowidgets.com
Name Resolution in Windows
 NetBios (computer) names are broadcast to
the local network
 Starting with Windows NT, WINS database
has computer name to IP address resolution
 Windows 2000 introduces Dynamic DNS
 DNS is required for Active Directory Services
 DNS as described for Linux can also be
configured
 Wizards guide you through the configuration
Finished DNS Configuration in
Windows
Troubleshooting DNS
ping
 ping displays name resolution even if the computer cannot be contacted
Troubleshooting DNS
nslookup
 nslookup can display information from the DNS server
Troubleshooting DNS
dig – available on Linux
Summary
 DNS is an application that translates names
to IP addresses and IP addresses to names
 Organized in a hierarchical structure
 Servers come in many forms: primary,
secondary, caching, forwarding
 To configure DNS, set up a forward and
reverse zone
 Use ping, nslookup, and dig to troubleshoot
DNS

Mais conteúdo relacionado

Mais procurados

DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name SystemPeter R. Egli
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configurationSanguine_Eva
 
DDoS - Distributed Denial of Service
DDoS - Distributed Denial of ServiceDDoS - Distributed Denial of Service
DDoS - Distributed Denial of ServiceEr. Shiva K. Shrestha
 
Network security (vulnerabilities, threats, and attacks)
Network security (vulnerabilities, threats, and attacks)Network security (vulnerabilities, threats, and attacks)
Network security (vulnerabilities, threats, and attacks)Fabiha Shahzad
 
CNIT 123 8: Desktop and Server OS Vulnerabilities
CNIT 123 8: Desktop and Server OS VulnerabilitiesCNIT 123 8: Desktop and Server OS Vulnerabilities
CNIT 123 8: Desktop and Server OS VulnerabilitiesSam Bowne
 
Denial of Service Attacks (DoS/DDoS)
Denial of Service Attacks (DoS/DDoS)Denial of Service Attacks (DoS/DDoS)
Denial of Service Attacks (DoS/DDoS)Gaurav Sharma
 
Domain name system
Domain name systemDomain name system
Domain name systemDiwaker Pant
 
Network security
Network securityNetwork security
Network securityEstiak Khan
 
Network and System Administration
Network and System AdministrationNetwork and System Administration
Network and System AdministrationIgguuMuude
 
Ethical hacking Chapter 7 - Enumeration - Eric Vanderburg
Ethical hacking   Chapter 7 - Enumeration - Eric VanderburgEthical hacking   Chapter 7 - Enumeration - Eric Vanderburg
Ethical hacking Chapter 7 - Enumeration - Eric VanderburgEric Vanderburg
 

Mais procurados (20)

Windows server
Windows serverWindows server
Windows server
 
Intro to DNS
Intro to DNSIntro to DNS
Intro to DNS
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
Network attacks
Network attacksNetwork attacks
Network attacks
 
Ddos attacks
Ddos attacksDdos attacks
Ddos attacks
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Dns presentation
Dns presentationDns presentation
Dns presentation
 
DDOS Attack
DDOS Attack DDOS Attack
DDOS Attack
 
DDoS - Distributed Denial of Service
DDoS - Distributed Denial of ServiceDDoS - Distributed Denial of Service
DDoS - Distributed Denial of Service
 
Network security (vulnerabilities, threats, and attacks)
Network security (vulnerabilities, threats, and attacks)Network security (vulnerabilities, threats, and attacks)
Network security (vulnerabilities, threats, and attacks)
 
Linux and DNS Server
Linux and DNS ServerLinux and DNS Server
Linux and DNS Server
 
CNIT 123 8: Desktop and Server OS Vulnerabilities
CNIT 123 8: Desktop and Server OS VulnerabilitiesCNIT 123 8: Desktop and Server OS Vulnerabilities
CNIT 123 8: Desktop and Server OS Vulnerabilities
 
Denial of Service Attacks (DoS/DDoS)
Denial of Service Attacks (DoS/DDoS)Denial of Service Attacks (DoS/DDoS)
Denial of Service Attacks (DoS/DDoS)
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Network security
Network securityNetwork security
Network security
 
Network and System Administration
Network and System AdministrationNetwork and System Administration
Network and System Administration
 
Ethical hacking Chapter 7 - Enumeration - Eric Vanderburg
Ethical hacking   Chapter 7 - Enumeration - Eric VanderburgEthical hacking   Chapter 7 - Enumeration - Eric Vanderburg
Ethical hacking Chapter 7 - Enumeration - Eric Vanderburg
 
Types of cyber attacks
Types of cyber attacksTypes of cyber attacks
Types of cyber attacks
 
Dns
DnsDns
Dns
 

Destaque

DNS and Troubleshooting DNS issues in Linux
DNS and Troubleshooting DNS issues in LinuxDNS and Troubleshooting DNS issues in Linux
DNS and Troubleshooting DNS issues in LinuxKonkona Basu
 
Dns On Linux
Dns On LinuxDns On Linux
Dns On Linuxdelimiter
 
Website basics
Website basicsWebsite basics
Website basicsBizink
 
Types of website (1)
Types of website (1)Types of website (1)
Types of website (1)Shop Cushion
 
Types of websites
Types of websites Types of websites
Types of websites Faiz Ahmed
 
IP adress and routing(networking)
IP adress and routing(networking)IP adress and routing(networking)
IP adress and routing(networking)welcometofacebook
 
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)Keiichiro Ono
 
The 30-Second Guide to URL Shorteners
The 30-Second Guide to URL ShortenersThe 30-Second Guide to URL Shorteners
The 30-Second Guide to URL ShortenersBuffer
 
Different Types of Websites
Different Types of WebsitesDifferent Types of Websites
Different Types of WebsitesNeil Lohana
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) pptDulith Kasun
 
Grid computing Seminar PPT
Grid computing Seminar PPTGrid computing Seminar PPT
Grid computing Seminar PPTUpender Upr
 
Introduction of Cloud computing
Introduction of Cloud computingIntroduction of Cloud computing
Introduction of Cloud computingRkrishna Mishra
 

Destaque (16)

DNS and Troubleshooting DNS issues in Linux
DNS and Troubleshooting DNS issues in LinuxDNS and Troubleshooting DNS issues in Linux
DNS and Troubleshooting DNS issues in Linux
 
Dns On Linux
Dns On LinuxDns On Linux
Dns On Linux
 
Website basics
Website basicsWebsite basics
Website basics
 
Types of website (1)
Types of website (1)Types of website (1)
Types of website (1)
 
Types of websites
Types of websites Types of websites
Types of websites
 
IP adress and routing(networking)
IP adress and routing(networking)IP adress and routing(networking)
IP adress and routing(networking)
 
3.4 Type of Website
3.4 Type of Website3.4 Type of Website
3.4 Type of Website
 
3.2.1 The Internet
3.2.1 The Internet3.2.1 The Internet
3.2.1 The Internet
 
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)
Cytoscape Tutorial Session 1 at UT-KBRIN Bioinformatics Summit 2014 (4/11/2014)
 
The 30-Second Guide to URL Shorteners
The 30-Second Guide to URL ShortenersThe 30-Second Guide to URL Shorteners
The 30-Second Guide to URL Shorteners
 
Different Types of Websites
Different Types of WebsitesDifferent Types of Websites
Different Types of Websites
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 
Grid computing ppt
Grid computing pptGrid computing ppt
Grid computing ppt
 
All you need to know about hosting a website
All you need to know about hosting a websiteAll you need to know about hosting a website
All you need to know about hosting a website
 
Grid computing Seminar PPT
Grid computing Seminar PPTGrid computing Seminar PPT
Grid computing Seminar PPT
 
Introduction of Cloud computing
Introduction of Cloud computingIntroduction of Cloud computing
Introduction of Cloud computing
 

Semelhante a Configure and Troubleshoot DNS in Linux and Windows

Semelhante a Configure and Troubleshoot DNS in Linux and Windows (20)

Linux basics andng hosti
Linux basics andng hostiLinux basics andng hosti
Linux basics andng hosti
 
Dns
DnsDns
Dns
 
6425 b 10
6425 b 106425 b 10
6425 b 10
 
Dns And Snmp
Dns And SnmpDns And Snmp
Dns And Snmp
 
What is dns
What is dnsWhat is dns
What is dns
 
Dns
DnsDns
Dns
 
Presentation2.pptx
Presentation2.pptxPresentation2.pptx
Presentation2.pptx
 
How to configure dns server(2)
How to configure dns server(2)How to configure dns server(2)
How to configure dns server(2)
 
Dns
DnsDns
Dns
 
D.N.S
D.N.SD.N.S
D.N.S
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Presentation
PresentationPresentation
Presentation
 
Presentation
PresentationPresentation
Presentation
 
DHCP
DHCPDHCP
DHCP
 
7 understanding DNS
7 understanding DNS7 understanding DNS
7 understanding DNS
 
Dns 2
Dns 2Dns 2
Dns 2
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Dns1111111111
Dns1111111111Dns1111111111
Dns1111111111
 
Domain Name Server
Domain Name ServerDomain Name Server
Domain Name Server
 

Mais de webhostingguy

Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Frameworkwebhostingguy
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guidewebhostingguy
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3webhostingguy
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serverswebhostingguy
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidationwebhostingguy
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreementwebhostingguy
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...webhostingguy
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...webhostingguy
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructurewebhostingguy
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.pptwebhostingguy
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy webhostingguy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandiserswebhostingguy
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Productswebhostingguy
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mbwebhostingguy
 

Mais de webhostingguy (20)

File Upload
File UploadFile Upload
File Upload
 
Running and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test FrameworkRunning and Developing Tests with the Apache::Test Framework
Running and Developing Tests with the Apache::Test Framework
 
MySQL and memcached Guide
MySQL and memcached GuideMySQL and memcached Guide
MySQL and memcached Guide
 
Novell® iChain® 2.3
Novell® iChain® 2.3Novell® iChain® 2.3
Novell® iChain® 2.3
 
Load-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web serversLoad-balancing web servers Load-balancing web servers
Load-balancing web servers Load-balancing web servers
 
SQL Server 2008 Consolidation
SQL Server 2008 ConsolidationSQL Server 2008 Consolidation
SQL Server 2008 Consolidation
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
What is mod_perl?
What is mod_perl?What is mod_perl?
What is mod_perl?
 
Master Service Agreement
Master Service AgreementMaster Service Agreement
Master Service Agreement
 
Notes8
Notes8Notes8
Notes8
 
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...PHP and MySQL PHP Written as a set of CGI binaries in C in ...
PHP and MySQL PHP Written as a set of CGI binaries in C in ...
 
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...Dell Reference Architecture Guide Deploying Microsoft® SQL ...
Dell Reference Architecture Guide Deploying Microsoft® SQL ...
 
Managing Diverse IT Infrastructure
Managing Diverse IT InfrastructureManaging Diverse IT Infrastructure
Managing Diverse IT Infrastructure
 
Web design for business.ppt
Web design for business.pptWeb design for business.ppt
Web design for business.ppt
 
IT Power Management Strategy
IT Power Management Strategy IT Power Management Strategy
IT Power Management Strategy
 
Excel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for MerchandisersExcel and SQL Quick Tricks for Merchandisers
Excel and SQL Quick Tricks for Merchandisers
 
OLUG_xen.ppt
OLUG_xen.pptOLUG_xen.ppt
OLUG_xen.ppt
 
Parallels Hosting Products
Parallels Hosting ProductsParallels Hosting Products
Parallels Hosting Products
 
Microsoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 MbMicrosoft PowerPoint presentation 2.175 Mb
Microsoft PowerPoint presentation 2.175 Mb
 
Reseller's Guide
Reseller's GuideReseller's Guide
Reseller's Guide
 

Configure and Troubleshoot DNS in Linux and Windows

  • 2. Overview  Understand the domain name service (DNS)  Identify the components of DNS  Configure zone files  Install and configure DNS in Linux  Understand name resolution in Windows  Install and configure DNS in Windows 2000 and 2003  Troubleshoot DNS  Use WINS to resolve computer names in Windows
  • 3. Understanding the DNS  DNS is used to map host names to IP addresses on the Internet  Also called name resolution or address resolution  Whenever a host is added, a configuration file has to be manually changed  A host represents a service on a server such as FTP or a Web server  There can be many hosts on a single computer  A Microsoft Windows 2000 or Windows 2003 network uses DNS to resolve computer names on a LAN  DNS in Windows is designed to be dynamic - as computers are added to the network, DNS automatically changes
  • 4. Clients  On your PC, the TCP/IP configuration contains the address(es) of your DNS server(s)  Whenever you use a URL, whether in a browser, or a utility such as ping, DNS servers are used
  • 5. Domain Namespaces  The root level domain is "."  Significant in creating DNS files  Top-level domains include com, org, fr  More have been added in 2000  Second-level domains are often owned by companies and individuals  microsoft.com, devry.edu  A subdomain is a further division of a second- level domain  For devry.edu, there is phx.devry.edu  Not common
  • 6. Domain Namespaces  Second-level domains, such as devry.edu have control over naming within their domain  Create hosts such as www, ftp, bb  A name such as www.devry.edu is a fully qualified domain name (FQDN)  We could create subdomains such as phx  www.phx.devry.edu
  • 7. New Top-Level Domains  .biz - businesses  .info - anyone can register  .name - must register first and last name  .pro - for professionals only  must provide proof  .aero, .museum, .coop are controlled by organizations
  • 8. Host Names  The first portion of a URL is typically a host name  Typically different from the name of the computer  Many hosts can be associated with the same Web server
  • 10. DNS Components  Name server – also known as DNS server  supports name-to-address and address-to- name resolution  Name resolver – also called DNS client  Can contact DNS server to lookup name  Used by browsers, e-mail clients, and client utilities such as ping and tracert
  • 11. DNS Servers that Define the Internet  Primary and secondary servers store the host names used on the Internet  Caching and forwarding servers search the Internet for host names
  • 12. Primary and Secondary Servers  Primary Server  Defines the hosts for the domain  Maintains the database for the domain  It has authority for the domain  Secondary Server  Gets data from primary server  Provides fault tolerance and load distribution  Required for Internet domains
  • 13. Primary and Secondary Servers  If you use DNS, you will often work with your ISP  In a simple environment, the ISP will have the primary and secondary DNS servers  You contact them for changes  You can also split the servers  ISP has primary, you have secondary  You have primary, ISP has secondary
  • 14. Primary and Secondary Servers  ISP maintains DNS  You have to send changes to ISP  You have the secondary server which gets updates from the primary server  Your users reference your secondary server which is faster
  • 15. Primary and Secondary Servers  You have complete control over DNS  You can make changes whenever you want  If your primary DNS goes down, the secondary will continue to function (but not indefinitely)
  • 16. Resolve Host Names  Caching Server  Resolves host names  Caches (saves) the results  Automatically installed when DNS is installed  No configuration necessary  Forwarding Server  Caching server that has access to the Internet and forwards traffic from other caching servers
  • 18. Zones  A zone is a part of the domain namespace  For a domain as small as technowidgets.com, the domain name represents a single zone  For large organizations (such as IBM), subdomains can be divided into separately maintained zones  Each zone typically has a separate DNS
  • 19. Zones  Zones must be contiguous  admin.devry.edu can be combined with devry.edu  admin.devry.edu cannot be combined with student.devry.edu  There must be one primary DNS server in each zone (plus a secondary server)  Each zone can have multiple secondary DNS servers
  • 20. Zone File Configuration  Forward Lookup  These zones contain entries that map names to IP addresses  Reverse Lookup  These zones contain entries that map IP addresses to names
  • 21. Common DNS Records DNS record Function Address (A) Associates a host to an IP address. Canonical name (CNAME) Creates an alias for a specified host. Internet (IN) Identifies Internet records; precedes most DNS record entries. Mail Exchanger (MX) Identifies a server used for processing and delivering e-mail for the domain. Name server (NS) Identifies DNS servers for the DNS domain. Pointer (PTR) Performs reverse DNS lookups. Resolves an IP address to a host name. Start of Authority (SOA) Identifies the DNS server with the most current information for the DNS domain.
  • 22. DNS Configuration in Linux  /etc/named.conf describes the files that configure the zones  There are two primary files that it describes  Forward lookup is described by named.technowidgets.com  It has the host names and how to handle e-mail  Reverse lookup is described by named.0.168.192  Can be necessary for e-mail (SMTP) and security programs
  • 23. /etc/named.conf Creating a DNS for the technowidgets.com domain  Default setup is for localhost 127.0.0.1  In named.conf add the following line zone "technowidgets.com" { type master; file “named.technowidgets.com”; };  This allows technowidgets.com to be resolved by /var/named/named.technowidgets.com  There can be multiple domains in a single named.conf file
  • 24. /etc/named.conf  Also, we can add the following line zone “0.168.192.in-addr.arpa” IN { type master; file “named.0.168.192”; };  This allows for reverse lookup for the domain  It uses all or part of the 192.168.0.0 network
  • 25. /var/named.technowidgets.com $TTL 86400 @ IN SOA web1.technowidgets.com. admn.technowidgets.com. ( 2002072100 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS web1 IN A 192.168.0.100 IN MX 10 mail.technowidgets.com. web1 IN A 192.168.0.100 www IN CNAME web1 research IN A 192.168.0.150 IN MX 10 mail mail IN A 192.168.0.200
  • 26. named.0.168.192 $TTL 86400 @ IN SOA web1.technowidgets.com. admn.technowidgets.com. ( 2002072100 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS web1 100 IN PTR web1.technowidgets.com. 150 IN PTR research.technowidgets.com. 200 IN PTR mail.technowidgets.com.
  • 27. Starting DNS in Linux  To start DNS  /etc/rc.d/init.d/named start  To restart DNS  /etc/rc.d/init.d/named restart  To stop DNS  /etc/rc.d/init.d/named stop  Make DNS start when you boot Linux  Add the command to start DNS to /etc/rc.d/rc.local
  • 28. Configuring Client DNS in Linux  Modify /etc/resolv.config  The following line directs the client to use the DNS server at 192.168.0.100  nameserver 192.168.0.100  The following line associates this computer with the technowidgets.com domain  domain technowidgets.com
  • 29. Test the DNS  Configure a Windows PC to use the DNS server  Start->Settings->Network and Dial-up Connections  Right-click on Local Area Connection and select Properties  Select Internet Protocol (TCP/IP) and click on Properties  Change DNS to 192.168.0.10  Reboot and ping www.technowidgets.com
  • 30. Name Resolution in Windows  NetBios (computer) names are broadcast to the local network  Starting with Windows NT, WINS database has computer name to IP address resolution  Windows 2000 introduces Dynamic DNS  DNS is required for Active Directory Services  DNS as described for Linux can also be configured  Wizards guide you through the configuration
  • 32. Troubleshooting DNS ping  ping displays name resolution even if the computer cannot be contacted
  • 33. Troubleshooting DNS nslookup  nslookup can display information from the DNS server
  • 34. Troubleshooting DNS dig – available on Linux
  • 35. Summary  DNS is an application that translates names to IP addresses and IP addresses to names  Organized in a hierarchical structure  Servers come in many forms: primary, secondary, caching, forwarding  To configure DNS, set up a forward and reverse zone  Use ping, nslookup, and dig to troubleshoot DNS

Notas do Editor

  1. Click what looks like a monitor at the bottom of the screen type: cd /etc type: cp named.conf named.conf.org type: gedit named.conf add the above four lines being aware that it is case-sensitive