In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the introduction of various servers under Linux". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the introduction of all kinds of servers under Linux".
# DNS#bind #
1.1 related resources of the software.
Official website: http://www.bind.com/
Official download of source code package: http://www.isc.org/index.pl/sw/bind/
Help documentation: http://www.isc.org/index.pl/sw/bind/ has more comprehensive help documentation for the software.
FAQ: http://www.isc.org/index.pl/sw/bind/ answers frequently asked questions about the software.
Sample configuration file: some of the more standard configuration file samples of http://www.bind.com/bind.html.
1.2 installation
L assume that the downloaded software source package is: bind-9.3.1. Tar.gz
[root@localhost root] # tar xzvf bind-9.3.1. Tar.gz
[root@localhost root] # cd bind-9.3.1
[root@localhost bind-9.3.1] # / configure / / check and set up the installation for the machine
[root@localhost bind-9.3.1] # make
[root@localhost bind-9.3.1] # make install
Note:. / configure checks and sets the installation of the machine. Most of the work is done automatically by the machine, but users can complete certain settings through some parameters. The common options are:
. / configure-- help looks at the parameter setting help.
-- prefix= specifies the software installation directory (default / usr/local/).
-- enable-ipv6 supports ipv6.
L you can also copy the rpm package from the CD or download the rpm package from the network (http://www.redhat.com), as follows:
Bind-8.2.2-p5-9.i386.rpm
Bind-devel-8.2.2-p5-9.i386.rpm
Cache-nameserver-6.2-2.noarch.rpm
Installation:
Rpm-Uhv bind-8.2.2-p5-9.i386.rpm
Rpm-Uhv bind-devel-8.2.2-p5-9.i386.rpm
Rpm-Uhv cache-nameserver-6.2-2.noarch.rpm
/ / check to see if bind is installed
# rpm-qa | grep bind
L basic configuration files and common commands
Three basic profiles:
1 / etc/named.conf
# the previous version is named.boot. The current version generally has both, but generally uses named.conf configuration, which is the core file of dns server configuration.
2 / var/named/named.ca will come with it when it is installed and generally will not be changed.
# if our DNS server is connected to internet, then the server in named.ca is our superior server. When a domain name cannot be found locally, it will go to the server in named.ca to look it up. Sometimes these servers are changeable, so we can download this file.
Ftp://ftp.rs.internic.net/domain/named.root, then rename it to named.ca and copy it into / etc.
Or: dig @ .aroot-servers.net.ns > / var/named/named.ca downloaded from the network.
3 / var/named/named.local
The # named.local file is used to convert the echo address 127.0.0.1 into the cost host name localhost, which is used by the reverse domain 0.0.127.IN-ADDR.ARPA. Since all systems have 127.0.0.1 as the echo address, the named.local file is virtually the same for each system and generally does not need to be modified.
By default, the deamon installed is / usr/local/sbin/named
Common command
Start the service
/ etc/rc.d/init.d/named start
Service named start
Out of Service
Ps-ef | grep named # found the process number
Kill process number
Netstat-an can check whether the service on port 53 is up.
/ usr/local/sbin/named-g-g indicates that the foreground is running, and the default is background.
If you want to set up a boot DNS server, simply add a line to / etc/rc.d/rc.local
/ usr/local/sbin/named
Such as:
#! / bin/sh
#
# This script will be executed * after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
Touch / var/lock/subsys/local
/ usr/local/sbin/named
L detailed description of server type
BIND can be configured to run in several different modes. General BIND is configured as a pure parser system, a pure cache server, a primary server, and a secondary server.
The parser refers to the program code that queries the domain information through the domain name server. in the unix system, it is implemented as a library routine, not a separate client program. The pure parser system is easy to configure, just set up the / etc/resolv.conf file. This method is usually used in systems where domain name server software cannot be run locally due to certain restrictions.
For example: / etc/resolv.conf content is similar to:
Search test.com
Nameserver 127.0.0.1
Nameserver 172.16.0.1
When you configure the parser library to use the BIND naming service for host lookup, you must also tell it which nameserver to use. There is a separate file for this, called resolv.conf. Its most important option is nameserver, which gives the IP address of the name server to be used. Add an hint if the server is not local, and IP is the IP of the server. If you specify several nameservers by giving the nameserver option several times, they will be tried in the order given. Therefore, you should first give the most reliable server. Currently, up to three name servers are supported.
If the nameserver option is not given, the parser attempts to connect to the name server on the local host, and the parser assumes that the name server is on your local host.
The other two options, domain and search, relate to the default domain attached to the host name if BIND cannot resolve the host name with the first request. The search option specifies a list of trial domain names. List items are separated by spaces or tabs. If the search option is not given, a search list is created from the local domain name and up to the parent domain of the root by using the domain name itself. The local domain name can be given using the domain statement; if none is given, the parser gets it through the system call getdomainname (2).
Thank you for your reading, the above is the content of "introduction to the erection of various servers under Linux". After the study of this article, I believe you have a deeper understanding of the introduction of various servers under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.