DNS for Linux server configuration -- BIND

Source: Internet
Author: User
Article Title: Linux server configuration-DNS-BIND. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

As we all know, although Linux cannot keep up with the popularity and ease of use of Windows on desktop applications, it is precisely because of its seemingly troublesome command line operations, this makes it better than windows, which uses a graphical interface for ease of use in terms of security. As a result, Linux can make a great deal in terms of servers, LAMP and DNS Server BIND, especially known for apache, are widely used. The following describes the bind configuration method.

First of all, I learned from my previous articles that the operating system I use is RED HAT Fedora Core 7. When installing the system, when selecting a software package, I am using a custom method, I have removed some useless software, such as games that are not fun at all and audio and video players that are not very useful at all (I can install a very useful Mplayer myself, I have not selected any other software packages that will not be used, then select all the software such as development tools and servers (selecting all the development tools will save you a lot of trouble in the future installation process ). Therefore, the bind has been installed after the system is installed, and you only need to configure it.

There are many ways to configure bind. I have adopted two methods (the premise is to clarify the working principle of dns), one is to set/etc/named. the various parts of the conf file are well understood, and then the file is modified (there are other files). Of course, this method takes a little time (at least I am doing this ), although this can also be configured, it can also appear very professional, but I have another way to configure it easily, it is also suitable for beginners (it takes some time for me to use the first method ).

The second configuration method requires the webmin software I mentioned in previous articles. This software is easy to use and can be used for remote configuration. The official website is http: // www.webmin.com/download.html, And the download path is the best. My name is webmin-1.360.tar.gz, the installation method is simple:

Tar-zxvf webmin-1.360.tar.gz
Cd webmin-1.360
./Setup. sh

During the installation process, you will be asked about the installation path (usually the mode owner), username, and password settings. After installation, you will be notified that you can use webmin by entering 127.0.0.1 in the browser: 1000 (default). The English version is just installed, but there is an option to select the language, select Simplified Chinese. (Due to the time relationship, you can use photoshop to process the captured graph and then release it.), configure the screenshot as follows:

1. choose "network"> "network configuration"> "dns customer"> change "Resolution order" to "dns, hosts"> "save ". return

2. Select "server"> "bind 8 dns server"> to view the global server options, "existing dns region", and other components.

3. Create a master server

Select "bind dns server"-> select "new primary region"-> "region type" and select "Forward" in "existing region ", enter "allwriter.cn" in the "Domain Name/network" Domain Name (this is my domain name, you can also write your own), the master server enters "master.allwriter.cn ", enter "root @ localhost" in the email address and press "new ".

4. in "existing region", select "new primary region"> "region type" and select "reverse". In "Domain Name/network", enter "222.24.121.170" (this is my IP address, enter "master.allwriter.cn" as the master server, "root @ localhost" as the email address, and "new" as the email address.

5. In the existing DNS region, select allwriter.cn-> "Address"-> enter "www" in "name", and enter "222.24.121.170"-> click "new ".

6. You can access apache by entering the domain name in the browser window with a little setup. The configuration is successful!

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.