Dns
-
Upload
mohammed-faris-majeed -
Category
Technology
-
view
145 -
download
0
Transcript of Dns
![Page 1: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/1.jpg)
DNSDomain Name Service/Domain Name System
DNS in Microsoft Windows Server 2003
What is DNS?
- Domain Name Service/Domain Name System - Provides resolution of names to IP addresses and resolution of IP addresses to names - Defines a hierarchical namespace where each level of the namespace is separated by a “.”What is a DNS Server?- Computer running DNS serviceCan be: - Microsoft® Windows® Server 2003 - Windows 2000 - Microsoft Windows® NT 4 - UNIX - Linux - NetWare Etc. How Names Are Mapped to IP Addresses
![Page 2: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/2.jpg)
DNS Namespace
Query TypesRecursive QueriesA query made from a client to a DNS server in which the server assumes full workload. DNS server returns either a complete answer or negative answer.Iterative QueriesReceiving server may return an answer, a negative response, or a referral to other DNS Server's “Give me an answer or refer me to somebody else who can help me obtain resolution.” Issued by: DNS Servers
Lookup Types : Forward lookupRequests Name-to-IP Address resolution
Reverse lookupRequests IP Address-to-Name resolution
![Page 3: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/3.jpg)
Fully Qualified Domain Name (FQDN) Identifies a host’s name within the DNS namespace hierarchy Host name plus DNS domain name = FQDN
ZONE:Zone is a storage database which contains all zone RecordsForward Lookup Zone - Used for Resolving Host Names to IP-Address - It maintains Host to IP Address Mapping InformationReverse Lookup Zone - Used for Resolving IP-Address to Host Names - It maintains IP Address to Host Mapping InformationTypes of Records1-SOA Record The first record in any zone file2-N S Record Identifies the DNS server for each zone3-Host Record Resolves a host name to an IP address4-Alias Record Resolves an alias name to a host name
Zone Types:1-Standard PrimaryIt is the Master Copy of all the Zone Information.It is Read/Write copy2- Standard SecondaryIt is Backup to Primary zone. It is Read Only3-Stub ZoneIt contains only NS ,SOA & possibly Glue (A) Recordswhich are used to locate name servers
![Page 4: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/4.jpg)
Active Directory IntegratedIt stores the information of Zone in ACTIVE DIRECTORYDATABASE
How can installing DNS:-
Requirement - DC member server or workgroup - Static IP Address 7-10-1-How to install DNS?
start -> setting -> control panel
add and remove program ->
add and remove windows component
![Page 5: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/5.jpg)
select network service -> details
check the box on [ √ ] D omain N ame S ystem (DNS) -> ok -> next
![Page 6: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/6.jpg)
ok -> finish to Access DNS start -> program ->administrative tools -> DNS or -> start -> run -> [ dnsmgmt.msc]
![Page 7: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/7.jpg)
create Zone -> start -> program ->administrative tools -> DNS -> expand server name-> expand forward lookup zone -> right click forward lookup zone -> new zone -> next
select primary zone -> next
select To all DNS server in the active Directory domain (domain name ) -> next
![Page 8: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/8.jpg)
give the zone name eg : ( yahoo.com ) -> next
select allow both nonsecure and secure dynamic update -> next
![Page 9: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/9.jpg)
finish
Create Host record right click on zone (yahoo.com ) -> new host
give the system name> and IP address -> click on add Host -> done
right click on zone (yahoo.com ) -> new Alias (CNAME)
![Page 10: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/10.jpg)
give the alias name (www) ->
click browse -> double click on (system name ) -> double click on (forward lookup zone ) ) -> double click on (zone name “yahoo.com”) -> select host name -> ok ->
![Page 11: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/11.jpg)
to check the resolution
start -> run -> [cmd ] -> ping [ www.yahoo.com]
Note : suppose the resolution is not showing Type command [ c:\ ipconfig /flushdns ]
![Page 12: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/12.jpg)
Secondary zone
DC member server (anther DNS server)ip add 192.168.1.1 192.168.1.2DNS 192.168.1.1 192.168.1.1On DC : -> Create primary zone Eg www.yahoo.com On member server : create secondary zone with same name ( www.yahoo.com) start -> program ->administrative tools -> DNS -> expand server name-> expand forward lookup zone -> right click forward lookup zone -> new zone -> next
select secondary zone -> next
![Page 13: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/13.jpg)
give the zone name -> next
assign the IP Address of first DNS server ( 192.168.0.1) -> next -> finish
right click on primary zone -> proprieties -> select zone transfer
![Page 14: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/14.jpg)
ON the DC
->check the box [√] allow zone transfer -> select only to the following server -> assign the IP address of the DNS of member server -> apply -> ok
ON member server right click on secondary zone -> select transfer from master refresh
![Page 15: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/15.jpg)
create sub zone
DC member server (anther DNS server)ip add 192.168.1.1 192.168.1.2DNS 192.168.1.1 192.168.1.1
-> On DC : -> Create primary zone Eg www.yahoo.com -> On member server : create secondary zone with same name ( www.yahoo.com) start -> program ->administrative tools -> DNS -> expand server name-> expand forward lookup zone -> right click forward lookup zone -> new zone -> next
select sub zone -> next -> next
![Page 16: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/16.jpg)
give the sub zone name
->assign the DNS (primary) IP Address
![Page 17: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/17.jpg)
next -> finish Note : to see the information present in cache [C:\ ipconfig /displaydns ]
To remove the information in cache [ c:\ ipconfig /flushdns ]
![Page 18: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/18.jpg)
Reverse lookup zone create primary zone on forward lookup zone with host and alias create reverse lookup zone right click on reverse lookup zone -> new zone -> next
select primary zone -> next
next assign the network ID -> next
![Page 19: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/19.jpg)
select [ allow both non secure & secure dynamic update ]
-> next -> finish
![Page 20: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/20.jpg)
Create Pointer : right click on reverse lookup zone -> new pointer (PTR)
assign the Host IP -> click on Browse -> select
-> double click on (system name ) -> double click on (forward lookup zone ) ) -> double click on (zone name “yahoo.com”) -> select host name -> ok -> ok
![Page 21: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/21.jpg)
To check the reverse lookup zone open cmd type [ c:\ NSLOOKUP “ IP ADDRESS ” ]
Forwarders Forwarders in DNS server configure forwarder so that it can forwarded the query to anther . DNS server where it can complete the resolution .You can also configure forwarders for load balancing .To configure forwarder -> check the IP address for tow different DNS server
ON SYS1 create zone with host record and alias name (www.yahoo.com ) ON SYS2
Sys1 Sys2
IP 192.168.0.1
DNS 192.168.0.1IP 192.168.0.2
DNS 192.168.0.2
![Page 22: Dns](https://reader036.fdocuments.us/reader036/viewer/2022062319/55844fded8b42af85e8b4df2/html5/thumbnails/22.jpg)
create zone with host record and alias name (www.google.com ) ON SYS1 open cmd ping www.yahoo.com reply and ping www.google.com not
reply open DNS right system name -> properties -> forwarder and assign the IP
address of DNS ( SYS2) -> apply -> ok open cmd ping www.google.com reply
Internet Information Service ( IIS )