DNS Installation and Configuration

Source: Internet
Author: User


[email protected] ~]# Yum List | grep bind

bind.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates

bind-chroot.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates

bind-devel.i686 32:9.8.2-0.37.rc1.el6_7.5 Updates

[email protected] ~]# Yum install-y bind

[[email protected] ~]#/etc/init.d/named start

Generating/etc/rndc.key: [OK]

Start named: [OK]


Configure DNS

1. Modify the master configuration file

[Email protected] ~]# vim/etc/named.conf

Add to:

Zone "123.com" in {

Type master;

File "123.com.zone";

};

[[email protected] ~]# named-checkconf//detect the main configuration file There is no mistake, the words will prompt


2. Edit 123.com.zone

[Email protected] ~]# Cat/var/named/named.localhost

[Email protected] ~]# Vim/var/named/123.com.zone

N SOA @ rname.invalid. (

0; Serial

1D; Refresh

1H; Retry

1W; Expire

3H); Minimum

NS @

A 127.0.0.1

AAAA:: 1

~


This article is from the "Daixuan" blog, make sure to keep this source http://daixuan.blog.51cto.com/5426657/1730960

DNS Installation and Configuration

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.