DNS Configuration Guide under RedHatAS5

Source: Internet
Author: User
Tags nameserver
DNS Configuration Guide under RedHatAS5-Linux Enterprise Application-Linux server application information. For details, refer to the following section. This guide is intended for friends who have previously configured DNS but cannot find their minds in AS5. I hope to learn how to configure DNS in as5.

I. experiment environment
1. Linux operating system version.: RedHat AS5
2. Bind version and software package:
Bind-9.3.3-7.el5.i386.rpm
Bind-chroot-9.3.3-7.el5.i386.rpm
Bind-devel-9.3.3-7.el5.i386.rpm
Caching-nameserver-9.3.3-7.el5.i386.rpm
2. The configuration file must be modified according to the following template:

In previous versions, there was a named. conf under/etc/, which was not found in AS5 and changed to named. caching-nameserver.conf.
And named. rfc1912.zones.

After the installation package is installed, you can configure it.

1. cat/etc/named. caching-nameserver.conf
Options {
Listen-on port 53 {192.168.10.201 ;};
# Listen-on-v6 port 53 {:: 1 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Query-source port 53;
Query-source-v6 port 53;
# Allow-query {any ;};
};
Logging {
Channel default_debug {
File "data/named. run ";
Severity dynamic;
};
};
View localhost_resolver {
# Match-clients {localhost ;};
Match-destinations {localhost ;};
Recursion yes;
Include "/etc/named. rfc1912.zones ";
};

2. Add the following lines to the/etc/named. rfc1912.zones file:

Zone "abc.com.cn" IN {
Type master;
File "abc1 ";
Allow-update {none ;};
};

Zone "10.168.192.in-addr. arpa" IN {
Type master;
File "abc2 ";
Allow-update {none ;};
};

The following two files are under the/var/named/directory.

3. cat abc1
$ TTL 86400
Abc.com.cn. in soa abc.com.cn. root.abc.com.cn .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum

Abc.com.cn. in ns mail.abc.com.cn.
Mail.abc.com.cn. in a 192.168.10.201
Www.abc.com.cn. in a 192.168.10.239
Abc.com.cn. in mx 5 mail.abc.com.cn.
DNS Configuration Guide under RedHat AS5 this guide is written by friends who have previously configured DNS but cannot find the DNS configuration in AS5, we hope to learn how to configure AS5 in this Guide.
If there is no, please go to the forum to discuss http://bbs.syscluster.com/read.php? Tid = 1395
Li zengji QQ: 156440574

I. experiment environment
1. Linux operating system version.: RedHat AS5
2. Bind version and software package:
Bind-9.3.3-7.el5.i386.rpm
Bind-chroot-9.3.3-7.el5.i386.rpm
Bind-devel-9.3.3-7.el5.i386.rpm
Caching-nameserver-9.3.3-7.el5.i386.rpm
2. The configuration file must be modified according to the following template:

In previous versions, there was a named. conf under/etc/, which was not found in AS5 and changed to named. caching-nameserver.conf.
And named. rfc1912.zones.

After the installation package is installed, you can configure it.

1. cat/etc/named. caching-nameserver.conf
Options {
Listen-on port 53 {192.168.10.201 ;};
# Listen-on-v6 port 53 {:: 1 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Query-source port 53;
Query-source-v6 port 53;
# Allow-query {any ;};
};
Logging {
Channel default_debug {
File "data/named. run ";
Severity dynamic;
};
};
View localhost_resolver {
# Match-clients {localhost ;};
Match-destinations {localhost ;};
Recursion yes;
Include "/etc/named. rfc1912.zones ";
};

2. Add the following lines to the/etc/named. rfc1912.zones file:

Zone "abc.com.cn" IN {
Type master;
File "abc1 ";
Allow-update {none ;};
};

Zone "10.168.192.in-addr. arpa "IN {RedHat AS5 DNS Configuration Guide this guide is written by friends who have previously configured DNS but cannot find the DNS configuration IN AS5, we hope to learn how to configure AS5 in this Guide.
If there is no, please go to the forum to discuss http://bbs.syscluster.com/read.php? Tid = 1395
Li zengji QQ: 156440574

I. experiment environment
1. Linux operating system version.: RedHat AS5
2. Bind version and software package:
Bind-9.3.3-7.el5.i386.rpm
Bind-chroot-9.3.3-7.el5.i386.rpm
Bind-devel-9.3.3-7.el5.i386.rpm
Caching-nameserver-9.3.3-7.el5.i386.rpm
2. The configuration file must be modified according to the following template:

In previous versions, there was a named. conf under/etc/, which was not found in AS5 and changed to named. caching-nameserver.conf.
And named. rfc1912.zones.

After the installation package is installed, you can configure it.

1. cat/etc/named. caching-nameserver.conf
Options {
Listen-on port 53 {192.168.10.201 ;};
# Listen-on-v6 port 53 {:: 1 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Query-source port 53;
Query-source-v6 port 53;
# Allow-query {any ;};
};
Logging {
Channel default_debug {
File "data/named. run ";
Severity dynamic;
};
};
View localhost_resolver {
# Match-clients {localhost ;};
Match-destinations {localhost ;};
Recursion yes;
Include "/etc/named. rfc1912.zones ";
};

2. Add the following lines to the/etc/named. rfc1912.zones file:

Zone "abc.com.cn" IN {
Type master;
File "abc1 ";
Allow-update {none ;};
};

Zone "10.168.192.in-addr. arpa" IN {
Type master;
File "abc2 ";
Allow-update {none ;};
};

The following two files are under the/var/named/directory.

3. cat abc1
$ TTL 86400
Abc.com.cn. in soa abc.com.cn. root.abc.com.cn .(
42; serial (d. adams)
3 H; DNS Configuration Guide under refreshRedHat AS5 this guide is written by friends who have previously configured DNS but cannot find the DNS configuration in AS5, we hope to learn how to configure AS5 in this Guide.
If there is no, please go to the forum to discuss http://bbs.syscluster.com/read.php? Tid = 1395
Li zengji QQ: 156440574

I. experiment environment
1. Linux operating system version.: RedHat AS5
2. Bind version and software package:
Bind-9.3.3-7.el5.i386.rpm
Bind-chroot-9.3.3-7.el5.i386.rpm
Bind-devel-9.3.3-7.el5.i386.rpm
Caching-nameserver-9.3.3-7.el5.i386.rpm
2. The configuration file must be modified according to the following template:

In previous versions, there was a named. conf under/etc/, which was not found in AS5 and changed to named. caching-nameserver.conf.
And named. rfc1912.zones.

After the installation package is installed, you can configure it.

1. cat/etc/named. caching-nameserver.conf
Options {
Listen-on port 53 {192.168.10.201 ;};
# Listen-on-v6 port 53 {:: 1 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Query-source port 53;
Query-source-v6 port 53;
# Allow-query {any ;};
};
Logging {
Channel default_debug {
File "data/named. run ";
Severity dynamic;
};
};
View localhost_resolver {
# Match-clients {localhost ;};
Match-destinations {localhost ;};
Recursion yes;
Include "/etc/named. rfc1912.zones ";
};

2. Add the following lines to the/etc/named. rfc1912.zones file:

Zone "abc.com.cn" IN {
Type master;
File "abc1 ";
Allow-update {none ;};
};

Zone "10.168.192.in-addr. arpa" IN {
Type master;
File "abc2 ";
Allow-update {none ;};
};

The following two files are under the/var/named/directory.

3. cat abc1
$ TTL 86400
Abc.com.cn. in soa abc.com.cn. root.abc.com.cn .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum

Abc.com.cn. in ns mail.abc.com.cn.
Mail.abc.com.cn. in a 192.168.10.201
Www.abc.com.cn. in a 192.168.10.239
Abc.com.cn. in mx 5 mail.abc.com.cn.

4. cat abc2

$ TTL 86400
@ In soa abc.com.cn. root.abc.com.cn .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns mail.abc.com.cn.
201 in ptr mail.abc.com.cn.
239 in ptr www.abc.com.cn.

After confirming that the configuration file is correct, run the following command:

Chown named. named/var/named/abc *

Add the following line to Vi/etc/resolv. con:
Nameserver 192.168.10.201

Command to start the service:
Service named restart
15 M; retry
1 W; expiry
1D); minimum

Abc.com.cn. in ns mail.abc.com.cn.
Mail.abc.com.cn. in a 192.168.10.201
Www.abc.com.cn. in a 192.168.10.239
Abc.com.cn. in mx 5 mail.abc.com.cn.

4. cat abc2

$ TTL 86400
@ In soa abc.com.cn. root.abc.com.cn .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns mail.abc.com.cn.
201 in ptr mail.abc.com.cn.
239 in ptr www.abc.com.cn.

After confirming that the configuration file is correct, run the following command:

Chown named. named/var/named/abc *

Add the following line to Vi/etc/resolv. con:
Nameserver 192.168.10.201

Command to start the service:
Service named restart
Type master;
File "abc2 ";
Allow-update {none ;};
};

The following two files are under the/var/named/directory.

3. cat abc1
$ TTL 86400
Abc.com.cn. in soa abc.com.cn. root.abc.com.cn .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum

Abc.com.cn. in ns mail.abc.com.cn.
Mail.abc.com.cn. in a 192.168.10.201
Www.abc.com.cn. in a 192.168.10.239
Abc.com.cn. in mx 5 mail.abc.com.cn.

4. cat abc2

$ TTL 86400
@ In soa abc.com.cn. root.abc.com.cn .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns mail.abc.com.cn.
201 in ptr mail.abc.com.cn.
239 in ptr www.abc.com.cn.

After confirming that the configuration file is correct, run the following command:

Chown named. named/var/named/abc *

Add the following line to Vi/etc/resolv. con:
Nameserver 192.168.10.201

Command to start the service:
Service named restart
4. cat abc2

$ TTL 86400
@ In soa abc.com.cn. root.abc.com.cn .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns mail.abc.com.cn.
201 in ptr mail.abc.com.cn.
239 in ptr www.abc.com.cn.

After confirming that the configuration file is correct, run the following command:

Chown named. named/var/named/abc *

Add the following line to Vi/etc/resolv. con:
Nameserver 192.168.10.201

Command to start the service:
Service named restart
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.