Sometimes, a company needs to manage many domain names. The correspondence between these domain names and ip addresses often changes, and the background operator is not a linux User. The following documents will meet this requirement.
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)
Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application
Lab environment: RHEL6192.168.0.75 (DNS server, DHCP server) 192.168.0.36 (update DNS server records, client) iptables and selinux disabled 1. use key to update the DNS server record 75 # yuminstallbindbind-chrootbind-utils-y/etc/init. d/namedstartc
Lab environment:
RHEL6
192.168.0.75 (DNS server, DHCP server)
192.168.0.36 (update DNS server records, client)
Disable iptables and selinux
1. Use the key to update DNS server records
75 # yum install bind-chroot bind-utils-y
/Etc/init. d/named start
:6, start the DNS server:#service named restart//restart the DNS service#rndc Reload//Reload key7, test DNS:The structure and format of the reverse parsing zone file is similar to that of a zone file, except that its primary content is to establish a pointer PTR resource record that maps IP addresses to DNS domain names.1, modify the DNS zone declaration storage file#vi/etc/named.rfc1912.zonesTo declare domain name area information, add the following
/bind-9.11.0-p2.tar.gz
[[ Email protected] opt] #tar-zxvf bind-9.11. 0-p2.tar.gz 2. Compiling on a 64-bit system, you may need to set some variables in order to find the appropriate MySQL library: [Email protected] ~]# export cppflags="-i/usr/lib64/mysql $CPPFLAGS"
~]# Export ldflags="-l/usr/lib64/mysql $LDFLAGS"
~]# export ld_library_path= " /usr/lib64/mysql " 3. Compile and install BIND-DLZ. [Email protected] opt]# CD bind-9.11. 0-P2
[[email protected] bind-9.11. 0-p2]#./configure--prefix=/us
method without OpenSSL./configure--prefix=/usr/local/named--without-openssl8. Compiling and installing the programMake9. Installation programMake install10. Configure the DNS server./rndc-confgen >>/usr/local/named/etc/rndc.conf11. Create named.confTail-n rndc.conf >/etc/named.conf12. Add in Name.confOptions{directory "/usr/local/named/var";};Zone "."{type hint; file "named.ca";};13. Create the named.ca file in the/usr/local/named/var directory14. St
1,donwload bind9
Wget-p/usr/local Https://www.isc.org/downloads/file/bind-9-10-4-p1/?version=tar-gz2,install Pkg
Yum Install gcc Openssl-devel3, compile and install
./configure--prefix=/usr/local/bind--with-openssl=no make make install4, create user
Useradd-r namedMkdir/etc/named5, Survival key
/usr/local/bind/sbin/rndc-confgen >/etc/named/rndc.conf6, written to named.conf
tail-10/etc/named/rndc.conf | head-9 | Sed s/#\//g >/etc/named/named.co
Mysql:mysql/usr/local/mysqlInitialize the configuration:# Cd/usr/local/mysql# scripts/mysql_install_db--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data--user=mysqlNote: Change/etc/my.cnf to a different name in case of conflictStart MySQL# cp support-files/mysql.server/etc/init.d/mysql# chkconfig mysql on# service MySQL start--start MySQLConfigure users# Path=/usr/local/mysql/bin: $PATH# Export PATH# Source/etc/profile# Mysql-urootmysql> Set Password = password (' 123456 ')Set up remote
shoot. What I want to auction is your career.
The teacher said that a person's career is the pursuit of your life and the development of your career. It is in your own hands. Character is fate. Your career belongs to your values. When people talk about their careers, they always feel that there are too many grip failures and they are buried in the unknown. In fact, it is not as mysterious as it is. Today, I want to use this game to give everyone a cl
In the classroom of Political Science in middle school, dialectical materialism tells us that everything includes two aspects of opposition and unity. To faithfully reflect the true nature of a transaction, we must adhere to the Contradiction Analysis Method of split into two parts, and make a comprehensive analysis of the contradiction, we must use a two-point theory to understand the nature of the transaction. Simply put, everything needs to see its good and bad sides.
The same is true for it
. Tang Jun was a great success, and his capital and value rose rapidly because they knew more about the use of capital operation and the law of the workplace in the market economy, mastering methods and rules is a shortcut to success. Let's take a look at the careers of these rich people. In our career planning, we call these people "rich" careers.
What is a rich career
The so-called "Rich-Money" career
:
File Name Source
/Etc/rc. d/init. d/named bind-9.2.1-9
/Usr/bin/nslookup bind-9.2.1-9
/Usr/sbin/rndc Binary-9.2.1-9
1.3 configuration Scheme
The configuration of the DNS server involves five main files, and four other files are also related to DNS:
1./etc/named. conf configuration file
Role: defines the basic parameters and source points of the domain database information. The file can be stored locally or remotely on the server.
Instance:
$ ORIGIN
Oracle 11g R2 RAC: Configure DNS resolution scan vip Oracle 11gR2Grid Infrastructure (CRS) introduces Single Client Access Name (SCAN) to simplify Client Access to database services. This article will introduce in detail how to configure DNS to resolve scan vip demonstration environment OracleEnterprise Linux 5.6 I. Install DNS Server
Rpm-ivhbind-9.3.6-16.P1.el5.i386.rpmrpm-ivhbind-chroot-9.3.6-16.P1.el5.i386.rpmrpm-ivhcaching-nameserver-9.3.6-16.P1.el5.i386.rpmDNS daemon/usr/sbin/named/usr/sbin
DNS is the basic service of the internet, and bind is the most popular open-source DNS software. Because it is very popular, it is very aggressive. Therefore, we need to build a secure DNS server. There are several measures to build a secure DNS Service (for basic bind compilation and installation and configuration, refer to: cainiao also uses DNS to configure the DNS Cache Server ):First, let the named run as a normal user# Useradd-s/bin/false bind create a user bind that is not allowed to log
be sent and received as follows:Windows Live Mail settings are as follows:Test
An email is sent to verify that the test is successful.
Iii. common error messages for configuring postfix in Centos environment 1. generating/etc/rndc appears when DNS is started. key: solved here: [root @ mail named] # rndc-confgen-r/dev/urandom-a 2. telnet cannot connect to the domain name + port 25, but can connect to the lo
Standard DNS software:BIND: Berkeley Internet Name Domain
Associated software packages: software packages starting with BindBind-libs provides library files for some peripheral toolsBind-utils client command line toolBIND server package, used to provide DNS ServerBind-chroot, do not install it. This program is very strange.Bind-devel Development KitBind-libbind-devel Development KitBind-sdb puts DNS data in the MySQL databaseIf you want to use it, you only need to install bind.
Caching-nameserve
example.test.com.
③ Create the db.example.test.com file under/etc/Bind
$ TTL 604800@ In SOA example.test.com. root.example.test.com .(1; Serial604800; refresh86400; retry2419200; expire604800); negative cache TTL;@ In NS example.test.com.Example in a 192.168.1.10
4. Copy
Copy the two created dB files to the/var/Cache/bind/folder.
5. Restart named.
Rndc reload
Rndc reconfig/Etc/init. d/bind9 restartDNS conf
";Severity dynamic;};};
Zone "." IN {Type hint;File "named. ca ";};
Zone "localdomain" IN {Type master;File "localdomain. zone ";Allow-update {none ;};};
Zone "localhost" IN {Type master;File "localhost. zone ";Allow-update {none ;};};
Zone "0.0.127.in-addr. arpa" IN {Type master;File "named. local ";Allow-update {none ;};};
Zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {Type master;File "named. ip6.local ";Allow-update {none ;};};
Zone "255. in-addr.arp
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.