Implementation of CentOs DNS Functions

Source: Internet
Author: User
Tags to domain

First, configure the linux network connection! 1. Install the relevant suite www.2cto.com [root @ localhost ~] # Yum-y install bind bind-chroot2, configure the experiment environment [root @ localhost ~] # Cd/var/named/chroot [root @ localhost chroot] # cp-rv/usr/share/doc/bind-9.3.6/sample/etc/var/[root @ localhost chroot] # cp-rv/usr/share/doc/bind-9.3.6/sample/etc/* etc/[root @ localhost chroot] # cp-rv/usr/share/doc/ bind-9.3.6/sample/var/* var/3. Configure related documents [root @ localhost ~] # Cd/var/named/chroot/etc [root @ localhost etc] # cp named. conf named. conf. bak [root @ localhost etc] # vi named. conf options {directory "/var/named"; // the default forwarders {202.102.240.65 ;}; (managed)}; zone "ethnicity.com" (positive solution) {type master; file "named. ethnicity ";}; zone" 1.168.192.in-addr. arpa "(reverse) {type master; file" 192.168.1.zone ";}; [root @ localhost ~] # Cd/var/named/chroot/var/named [root @ localhost named] # cp localhost. zone named. ethnicity [root @ localhost named] # cp localhost. zone 192.168.1.zone [root @ localhost named] # vi named. ethnicity $ TTL 86400 @ in soa @ root (42; serial (d. adams) 3 H; refresh 15 M; retry 1 W; expiry 1D); minimum in ns @ in mx 192 mail.ethnicity.com. ftp in a 192.168.1.192mail in a 192.168.1.192im in a 192.168.1.193c1 IN A 192.168.1.12c1 in a 192.168.1.13 [root @ localhost named] # vi 192.168.1.zone $ TTL 86400 @ in soa @ root (42; serial (d. adams) 3 H; refresh 15 M; retry 1 W; expiry 1D); minimum in ns @ 192 in ptr ftp. ethnicity. com192 in ptr mail. ethnicity. com193 in ptr im.ethnicity.com [root @ localhost named] #/etc/init. d/named restart4. Configure the Verification Environment (test in linux itself) [root @ localhost named] # vi/etc/resolv. conf; generated /Sbin/dhclient-scriptsearch ethnicity. comnameserver 192.168.1.1925. Verify [root @ localhost named] # nslookup> ftp. ethnicity. comServer: 192.168.1.192Address: 192.168.1.192 #53 Name: ftp. ethnicity. comAddress: 192.168.1.192> 192.168.1.193Server: 192.168.1.192Address: 192.168.1.192 #53 193.1.168.192.in-addr. arpa name = im.ethnicity.com. 1.168.192.in-addr. arpa.> mail. ethnicity. comServer: 192.168.1.192Address: 19 Route 1.192 #53 Name: mail. ethnicity. comAddress: 192.168.1.192> www. nyist. netServer: 192.168.1.192Address: 192.168.1.192 #53 Non-authoritative answer: Name: www. nyist. netAddress: 202.102.240.88> www. google. comServer: 192.168.1.192Address: 192.168.1.192 #53 Non-authoritative answer: www.google.com canonical name = www-g-com-chn.l.google.com.Name: www-g-com-chn.l.google.comAddress: 66.249.89.104> exit [Root @ localhost ~] # Dig-t MX mail.ethnicity.com (verify MX emblem: The domain name defined for the mail server); <> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <>-t MX mail.ethnicity.com; global options: printcmd; Got answer:;-> HEADER <-opcode: QUERY, status: NOERROR, id: 8264; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0; question section:; mail.ethnicity.com. in mx; authority section: ethnicity.com. 86400 in soa ethnicity. Com. root.ethnicity.com. 42 10800 900 604800 86400; Query time: 3 msec; SERVER: 192.168.1.192 #53 (192.168.1.192); WHEN: Tue Feb 8 20:07:16 2011; msg size rcvd: 77 success! Finally, the term "SOA" indicates the authority of the area (taking the school's DNS as an example, the main DNS server of the school's homepage 202.102.240.88 is 202.102.240.65) NS lists a name server in the area (the name of this DNS server) PTR ing (positive) of domain name A to IP address ptr ip address to domain name ing (reverse) CNAME set alias MX emblem related to mail service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.