This article describes in detail the IP and DNS setting method under CentOS. Share to everyone for your reference, specific as follows:
1, CentOS Modify DNS
To modify the DNS profile of the corresponding network adapter
# vi/etc/resolv.conf
Modify the follow
; Refresh14400; Retry3600000; Expire86400); MinimumIn ns localhost.2 in ptr www.linuxidc.com. // Modify the last line to (my IP address is 192.168.1.2 and the domain name is www.linuxidc.com)--------------------------------------------------------------------[Root @ server named] # bind-chroot-admin-s // automatically sets the group and permissions (/usr/bin/find may be prompted in CentOS: /var/log/named. l
Build a DNS server in CentOS
DNS performs forward and reverse resolution...
Full Qualified Domain Name Security Qualified host Name = Host Name. For example, www.tar ena.com.cn
Execute the program:/usr/sbin/named service Script:/etc/init. d/named default port: TCP/UDP 53
Virtual root environment:/var/named/chroot/Maste
Environment: CentOS 6.5 64bit 192.168.1.9 (main) 192.168.1.10 (from)Software version: BIND9Pre-Preparation: Close the firewall (or release UDP TCP 53 953 ports), close SELinux.
Master server Configuration No longer describes the instructions, you can view the previous steps. This only records the configuration from the server.1, install bind and
REM file name set DNS name server address Bat batch script file. batREM Use set the DNS name server address for the wireless network connectionnetsh interface ip add DNS "Wireless netwo
Before building a dns server, you need to do some preliminary work.
1. Install mysql
First, you need to download mysql. You can go to the official website to download the binary file www.mysql.com. I downloaded the binary file version 5.5 without compiling it. Put the file in CentOS and decompress it.
Put the decompressed file in the/usr/local directory, go
Build a master-slave DNS Server Based on CentOS 6
1. Switch to the root user
2. bind is installed on two servers.
yuminstallbind
3. Compare the bind versions of the two servers
4. Modify the master configuration file information. We recommend that you back up the master configuration file and modify it later.
Cp/etc/named. conf/etc/named. conf. bakvi/etc/named.
The following is a forward resolution based on RedHat 5 or CentOS System (IP192.168.1.2 domain name is www.linuxidc.com). To ensure successful construction, do not miss any step. The following is a detailed step-by-step command can also ensure success! (For reverse resolution steps, refer to the next article)1. Install related software packages: to ensure smooth operation, follow these steps to delete and reinstall all software packages.[Root @
,dump-file "/var/ Named/data/cache_dump.db "; #dump data File path, statistics-file "/var/named/data/named_stats.txt";# static file path, memstatistics-file "/var/named/data/named_mem_ Stats.txt ";#allow-query{ any;};# allows the client to query the IP address, any for any, for example: 192.168.1.0/24;172.16.0.0/18, etc., recursionyes;# recursive query, root server to open as far as possible, dnssec-enableyes;# whether Dnssec,dnssec can be turned on t
Brief steps:1. Add the domain in the main configuration file of bind2. Create a zone file for the domain in/var/named3. Edit the zone file to add the required information4. Detect firewall or SELinux settings5. Start the BIND service and restart the network service6. Client-side test domain name resolution1. Installing the DNS server componentsInstall bindYum-y Install bind bind-chroot bind-util bind-libs2.
The example in this article describes the CentOS 6.6 implementation method for permanently modifying DNS addresses. Share to everyone for your reference, specific as follows:
1. Configure IP address file /etc/sysconfig/network-scripts/ifcfg-eth0
Add a line:
Copy Code code as follows:
dns1=8.8.8.8 #手动添加一个dns地址;
The address of the
Test environment:
MASTER: 192.168.79.130
From: 192.168.79.128,
Domain Name: bkjia.com
I. Compilation and Installation
Here, we use compilation and installation to better understand the working mechanism than the rpm installation method.
(Download the source file package)
# Tar-zxvf bind-9.9.3.tar.gz (extract)
# Cd bind-9.9.3 (enter the extracted directory)
#./Configure-prefix =/usr/local/named-enable-threads-with-dlz-mysql
(For compilation, the-perfix option specifies the installation directory.
In CentOS7, manually set the DNS in/etc/resolv. conf. after a while, the system will overwrite or clear the DNS. Different from setting DNS in CentOS6, there are several methods: 1. use the new command line tool nmcli to set # display the current network connection # nmclico
The following is the basic solution for setting up DNS servers in Ubuntu. Because network-manager always causes various problems, you can uninstall it in anger and manually modify/etc/network/interfaces as follows: # Thisfiledescribesthenetworkinterfacesavailableonyoursystem # andhowtoactivatethem.
The following is the basic solution for setting up DNS servers in Ubuntu.
Because network-manager always cause
In a network set up with the TCP/IP protocol family, each node has a unique IP address that is used as their only token. However, it would be unthinkable if the user were to be remembered for such an IP address without a memory rule. People need a string of memory rules to be the name of a unique tag node.
However, although the symbol name is very convenient for people, it is not so convenient to implement on the computer. In order to solve this dema
Article Title: setting up a DNS server in Linux (1 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Introduction to Domain Name System
1. Domain Name System
The domain name system is a distributed database that enables local control of part of the entire Distr
Article Title: Set up a DNS server in Linux (3 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
4. standard resource records
-----------------------------------------------------------------------
Resource Record text
Set up an FTP server on centos 7 and set up ftp on centos 7Note: This article refers to the CSDN blogger xiaocia's article 《Build an FTP server on CentOS7To verify the feasibility. However, there is one drawback:
After linux is re
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.