DNS simple configuration under Linux1. Install the DNS package. Mount Redhat disc image, I believe everyone will, into the CD mount point, find the following several packages, with RPM or Yum installation, here is not much to do introduction. bind-9.3.4-10.p1.el5 (master installation file for DNS)Bind-chroot-9.3.4-10.p1.el5 (this plays a safe role)caching-nameserver-9.3.4-10.p1.el5.i386.rpm (automatically implements the Caching-only server and generates a template file for the DNS master configuration file)It is sufficient to install these 3 packages here. 2. The next step is to configure the DNS server configuration file, first we look at what the DNS needs to boot, to the previous installation of the bind-9* package to see The red circle is the DNS startup file. 3. switch to the directory of the DNS server master configuration file cd/var/named/chroot/etc
we know that, in general, a service configuration file is xxx.conf such a file, but we just looked at the DNS Service Master profile directory and did not find such a file, what to do? This requires that we create a file manually, command cp-p named.caching-nameserver.conf named.conf. Why would you use this file for CP? We talked about caching-nameserver-9*. This package will produce a template for the DNS master profile, we just need to CP this template, and then edit it. 4. Edit the configuration file Vim named.conf. Modify several lines of the content
because the DNS server is network-oriented, so there are many domain names to be parsed, there are many hosts to be accessed, here a few of the key elements are set in order to any, but also can specify the network address, which can be accessed, which can not access, this operation of their own practice, there is not much to say. 5. Edit another file vim named.rfc1912.zones, inserting a new area
Yes, that's right. Forward lookup zones created on Win2003 (specific configuration reference above article)6. The next step is to set up the DNS zone file, first switch to the zone file location cd/var/named/chroot/var/named, because a file "long.xcu.com.db" is required to add a zone in the previous step this is the database file for the DNS zone, so we also need to manually createcp-p Localdomain.zone long.xcu.com.db, and then edit the newly created file long.xcu.com.db
These are the basic configuration of DNS zone files, be careful to be consistent with the configuration under the Win2003, forget whether the same, the comparison of their own reference to the Win2003 configuration. 7. Set the DNS service to point to vim/etc/resolv.conf
8. The next step is to start the DNS service and test it.
Note that since I am doing this on a virtual machine, the network card types of the two virtual machines must be the same.
This article is from the Computer Communication area blog.
DNS Simple configuration