Configure DNS on Redhat9

Source: Internet
Author: User
Configure DNS-Linux Enterprise Application-Linux server application information on Redhat9. For more information, see. Prerequisites: The machine name is bak.5ilinux.com and the domain name is 5ilinux.com.

1. Install from an installation disk

Rpm-ivh bind-9.2.2-21.i386.rpm

2. Add configuration file

Vi/etc/named. conf

# Named. conf-configuration for bind
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind shocould be put
# In/etc/named. custom
# Controls {inet 127.0.0.1 allow {localhost;} keys {rndckey ;};}; include "/etc/rndc. key ";

Options {

Directory "/var/named /";

};

Zone "."{

Type hint;

File "named. ca ";

};

Zone "0.0.127.in-addr. arpa "{

Type master;

File "0.0.127.in-addr. arpa. zone ";

};

Zone "localhost "{

Type master;

File "localhost. zone ";

};

Zone "5ilinux.com "{

Type master;

File "5ilinux.com. zone ";

};

Download named. ca

Wget ftp://ftp.rs.internic.net/domain/named.root

After downloading, change the name to named. ca in the/var/named directory.

Vi/var/named/localhost. zone

$ TTL 86400 @ in soa @ root. localhost (

1; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

In ns localhost.

@ In a 127.0.0.1

Vi/var/named/0.0.127.in-addr. arpa. zone

$ TTL 86400 @ in soa localhost. root. localhost (

2; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

@ In ns localhost.

1 in ptr localhost.

1 in ptr bak.

Vi/var/named/5ilinux.com. zone

$ TTL 86400 @ in soa bak.wapya.com. root. localhost (

3; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

In ns bak.wapya.com.

Www in a 210.51.0.124

Bak in a 210.51.0.124

Mail in cname www

Wap in a 210.51.0.122

5ilinux.com in mx 10 www

Okay, these configuration files. I will not talk about the principles.

Write down the configuration process to facilitate future data query.

/Etc/rc. d/iinit. d/named restart

Restart the service.

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.