1 / 21

中華技術學院 Linux 課程

中華技術學院 Linux 課程. Chap two : DNS 王俊城 RHCE/RHCX. Agenda. DNS overview Configuring BIND Creating BIND databases Additional DNS methods Using BIND tools. Domain Name System (DNS). forward lookup www.hinet.net -> 61.219.38.89 reverse lookup 61.219.38.89 -> www.hinet.net

Download Presentation

中華技術學院 Linux 課程

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 中華技術學院Linux課程 Chap two : DNS 王俊城 RHCE/RHCX

  2. Agenda • DNS overview • Configuring BIND • Creating BIND databases • Additional DNS methods • Using BIND tools

  3. Domain Name System (DNS) • forward lookup • www.hinet.net -> 61.219.38.89 • reverse lookup • 61.219.38.89 -> www.hinet.net • Logically group by name domains • Provides email routing information

  4. Name Server Hierarchy • Master name server • maintain zone file itself • Slave name server • Provides a backup to the master name server • Synchronization with master or another slave name server • Cache-only • No any one zone file

  5. DNS Server • Server receives request • If zone file have answer • If cache have answer • If forward assign • Asks root name server • /var/named/named.ca • dig @168.95.192.1

  6. BIND • Berkeley Internet Name Domain (BIND) • BIND 9 • /usr/share/doc/bind*/README • http://www.isc.org/products/BIND

  7. Service Profile : DNS • Type: System V-manager service • Packages: bind,bind-utils caching-nameserver openssl • Daemons: named • Script: named • Ports: UDP(53),TCP(53) • Configs: /etc/named.conf /var/named/named.ca /var/named/* • Log: /var/log/messages

  8. Configuring BIND • /etc/named.conf • service named restart • Text-file specifying directives:zones,options,access control lists,etc • Comments can be in C,C++ or shell style • /* C style comment */ • // C++ style comment • # shell style comment

  9. Global Options

  10. BIND utlities • host: gather host/domain information • host example.com • host –al example.com • host –t mx example.com • dig: send queries to name server directly • dig @168.95.192.1 www.redhat.com • dig @168.95.192.1 • nslookup is deprecated

  11. LAB1-Cache-only DNS Server • /var/named/chroot/etc/named.conf • /etc/hosts • /etc/resolv.conf • service named restart • host station251.example.com

  12. Slave Zones

  13. LAB2-Slave DNS Server • /var/named/chroot/etc/named.conf • /etc/hosts • /etc/resolv.conf • service named restart • host station251.example.com

  14. Master Zones

  15. Special Zones • Root zone: “.”

  16. Zone Files • /var/named/* ( or /var/named/chroot/var/named/*) • Begin with $TTL (time to live) • First resource record is zone`s start of authority(SOA) • Zone data in additional resource records • Comments can be “;”

  17. Example Zone Files • SOA record • NS records • A records • CNAME records • MX records

  18. Example Zone Files

  19. LAB2-Master DNS Server • /var/named/chroot/etc/named.conf • /etc/hosts • /etc/resolv.conf • service named restart • host station251.example.com

  20. Delegating Subdomains • Configure the subdomain as a zone on the new server • On delegating server,set up NS record for the subdomain pointing to the new server • If new server is in subdomain it manages,on delegating server need a “glue” A record for new server

More Related