Introduction to DNS servers in Linux and detailed descriptions of configuration instances

Source: Internet
Author: User
Tags nslookup command

Http://lq2419.blog.51cto.com/1365130/1172269

Http://lq2419.blog.51cto.com/1365130/1172273

Http://lq2419.blog.51cto.com/1365130/1172319

Edit # Vim/etc/named. conf configuration file, add the following content: Options {directory "/var/named" ;}; zone ". "In {type hint; file" named. root ";}; zone" localhost "in {type master; # specify the master Server File" localhost. zone ";}; zone" myinfratest.com "in {type master; file" infra.com. zone ";}; zone" created 192.in-ADDR. ARPA "in {# reverse region name type master; file" 192.168.2.zone "; # saved region data file};/var/named/infra.com. zone content $ TTL 600 myinfratest.com. in SOA ns1.myinfratest.com. admin.myinfratest.com. (2013040101 1 H 5 m 2D 6 h) in NS NS1 in MX 10 mail NS1 in a 192.168.2.4 mail in a 192.168.2.4 WWW in a 192.168.2.4 WWW in a 192.168.2.6 FTP in cname WWW Use this command to request resolution of www.myinfratest.com this host dig-t a www.myinfratest.com @ 192.168.2.4host and NSLookup command can also view/var/named/192.168.2.zone content $ TTL 600 running 192.in-ADDR. ARPA. in SOA ns1.myinfratest.com. admin.myinfratest.com. (2013040101 1 H 5 m 2D 6 h) in NS ns1.myinfratest.com. 4 In PTR ns1.myinfratest.com. 4 In PTR mail.myinfratest.com. 4 In PTR www.myinfratest.com. 6 In PTR www.myinfratest.com. run the dig command to reverse query dig-t ptr 192.168.2.6 @ 192.168.2.4

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.