Detailed configuration of dns server setup under redhatas5 (requires refined configuration)

Source: Internet
Author: User
Tags nameserver
Detailed configuration of dns server setup under redhatas5 (requires refined configuration)-Linux Enterprise Application-Linux server application information. The following is a detailed description. Dns server setup. This configuration is successfully tested under centos5.1 and under rdehat as5.

Successful
1, # vi/etc/sysconfig/network; give the local host name,
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = www.hello521.com
2, # vi/etc/hosts; local resolution, this host name and IP can be written in, can

Improves resolution speed.
127.0.0.1 localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6
192.168.1.11 www.hello521.com www
192.168.1.10 mail.hello521.com mail
192.168.1.12 ftp.hello521.com ftp
3. # vi/etc/host. conf; it is the parsing order. If the above hosts cannot be parsed

DNS resolved
Order hosts, bind
Note that system-config-bind is not installed.
If it is not installed, the default configuration file named. conf will not appear.
4. install the dns server yum install bind
Yum install system-config-bind
Yum caching-nameserver-9.3.3-7.el5.i386.rpm
It must be noted that there is no named. conf configuration file in the tec directory in as5.

Parts, its alternative file named. caching-nameserver.conf and

Named. rfc1912.zones while other instance files are in the/var/named directory
5, [root @ www named] # vi/etc/named. caching-nameserver.conf
Modify the following two sentences:
Options {
Listen-on port 53 {192.168.1.11 ;};
Allow-query {any ;};
[Root @ www named] # vi/etc/named. rfc1912.zones Add the following
Zone "hello521.com" IN {
Type master;
File "hello521.com. zone ";
Allow-update {none ;};
};

Zone "1.168.192.in-addr. arpa" IN {
Type master;
File "192.168.1.zone ";
Allow-update {none ;};
};

6, [root @ www named] # cp localdomain. zone hello521.com. zone
[Root @ www named] # cp named. local 192.168.1.zone
Vi hello521.com. zone
$ TTL 1D
$ TTL 1D
@ 1D in soa hello521.com. root.hello521.com .(
42 serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
In ns www.hello521.com.
In mx 10 mail.hello521.com.
Www in a 192.168.1.11
Mail in a 192.168.1.10
Ftp in a 192.168.1.12


Reverse resolution vi 192.168.1.zone
$ TTL 1D
@ In soa hello521.com. root.hello521.com .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns www.hello521.com.
11 in ptr www.hello521.com.
12 in ptr ftp.hello521.com.
10 in ptr mail.hello521.com.

7. [root @ www named] # mv hello521.com. zone

/Var/named/chroot/var/named/
[Root @ www named] # mv 192.168.1.zone

/Var/named/chroot/var/named/
[Root @ www named] # ln-s

/Var/named/chroot/var/named/hello521.com. zone
[Root @ www named] # ln-s

/Var/named/chroot/var/named/192.168.1.zone
Note that the current directory/var/named/in the preceding operation should not be wrong.
Edit vi/etc/reslov. conf
Write nameserver to your server address.
Then start the dns server named restart
Test dns nslookup www.hello521.com
If you have any questions, add group 13275765 (q): s
Related Article

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.