Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the configuration of the Linux-Bind-DNS server

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about the configuration of the Linux-Bind-DNS server. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

How to configure the DNS server quickly under the Linux platform? Many network administrators find it troublesome. I will now summarize the following case study method based on my methods in practice.

Case: the domain name of a unit is: avnads.cn, the address of the www host is: 192.168.1.1 the address of the DNS server is: 192.168.1.100, complete the configuration of the DNS server.

Steps:

1. Install the bind package:

# rpm-qa | grep bind

# mount / mnt/cdrom

# cd / mnt/cdrom/RedHat/RPMS

# rpm-ivh bind-9.2.1-16.i386.rpm

# rpm-ivh bind-utils-9.2.1-16.i386.rpm

# rpm-ivh redhat-config-bind-1.9.0-13.noarch.rpm

# rpm-ivh caching-nameserver-7.2.-7.noarch.rpm

two。 Edit the main profile:

# vi / etc/named.conf

Options {

Directory "/ var/named"

}

Controls {

Inet 127.0.0.1 allow {localhost;} keys {rndckey;}

}

Zone "." IN {

Type hint

File "named.ca"

}

Zone "localhost" IN {

Type master

File "localhost.zone"

Allow-update {none;}

}

Zone "0.0.127.in-addr.arpa" IN {

Type master

File "named.local"

}

Include "/ etc/rndc.key"

/ / the following is my configuration

Zone "seogate.cn" IN {

Type master

File "seogate.cn.hosts"

Allow-update {none;}

}

Zone "1.168.192.in-addr.arpa" IN {

Type master

File "192.168.1.rev"

Allow-update {none;}

}; 3. Edit the host record file:

# cd / var/named

# vi seogate.cn.hosts / / forward parsing

$TTL 86400

$ORIGIN seogate.cn.

@ 1D IN SOA @ root (

42; serial (d. Adams)

3H; refresh

15m; retry

1W; expiry

1D); minimum

1D IN NS @

Www 1D IN A 192.168.1.1

# vi 192.168.1.rev / / reverse resolution

$TTL 86400

@ IN SOA localhost. Root.localhost. (

1997022700; Serial

28800; Refresh

14400; Retry

3600000; Expire

86400); Minimum

IN NS seogate.cn.

1 IN PTR seogate.cn.

4. Start the server:

# service named start

Configuration complete. This case is my own hands-on test, can work normally.

The above is the configuration of the Linux-Bind-DNS server shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report