Installing the Configure DNS serverInstall a bind, first search.Yum List |grep bindbind.x86_64 we install thisInstallationYum Install Bind.x86_64-yLook at his configuration file.Vim/etc/named.conf{Listen-on Port 53 {127.0.0.1;}; The listening port is 53, the IP that defines the listening 53 port is the 127.0.0.1 loopback IPListen-on-v6 Port 53 {:: 1;}; IP V6.Directory "/var/named"; Directory for child
1. Windows XP system Bat batch modifies IP address and DNS.
NEW: Text document, copy the following code to the text document, save as set IP Address.bat, double-click to run, you can!
@echo offEcho **************************************************************************echo * Modify IP address, DNS *echo * Windows XP Copyright (
Brief introduction
In my opinion, the only DNS solution based on bind consists of two parts: geolocation and dynamic record. The domestic industry for smart DNS positioning is nothing more than these two points, but I understand that smart DNS is based on these two intelligent scheduling system, such as I have three load capacity of different data centers,
Experimental environment:
Aix:os version: AIX 5L for power V5.1
IP address:192.168.0.5
Assume Domain name: king.com
Host Name: pp.king.com
As a domain name server, the ability to have positive and reverse solutions is called a complete server. Now there are many, especially win's DNS server many do not have the ability to reverse the solution.
Let's get to the point.
Set up a complete DNS server main
Recently get a more useful DNS, after each reboot to modify the DNS configuration file/etc/resolv.conf restart will expireLearned from the Internet/etc/resolv.conf in the DNS configuration is loaded from the/etc/resolvconf/resolv.
# Yum-y install bind-utils # Yum-y install bind-chroot # rpm-Qa | grep '^ bind' # Run the command again if bind-chroot is not installed: yum-y install bind-chroot # vi/etc/named. conflisten-on port 53 {Any ;}; allow-query {Any ;};# VI/etc/named. rfc1912.zones
Zone "hadoop.com" in {
Type master;
File "named.hadoop.com ";
Allow-update {none ;};
}
Zone "0.168.192.in-ADDR. Arpa" in {
Type master;
File "named.
running
Add named to the startup entry and start with the operating system.echo "/usr/local/named/sbin/named-c/usr/local/named/etc/named.conf" >>/etc/rc.local
############ #从dns配置Compile installation, generate rndc.conf, and named.conf and master library operations
VI Named.conf added at the backOptions {Version "Guess";Allow-transfer {none;};Directory "/USR/LOCAL/NAMED/ETC";Dump-file "/usr/local/named/
One, configure IPUbuntu Network configuration information is placed in the/etc/network/interfaces, if the configuration dynamically acquire IP, then add the following in the above file: auto eth0 iface eth0 inet DHCP as Configure static IP, add the following: Auto eth0 iface eth0 inetStaticAddress 192.168.33.201 netmask 255.255.255.0 gateway 192.168.33.1 If the
-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm3. Modify the master configuration fileVim/etc/named.confOptions {directory "/var/named"; # Define the default storage location for zone data files }; zone benet.com " in { # type master; NBSP;NBSP;NBSP;NBSP;NBSP, # master (master server) file " benet.com.zone"; # The zone data file is named benet.co
(alias record)Domain domains are used to register for zone-based implementationsAuthoritative DNS server: A server that holds all host name resolution in a domain, requires an alternateBind (Package): Bekerley Internet Name DomainProcess script:/etc/rc.d/init.d/namedConf:/etc/named.conf,/etc/named.rfc1912.zonesZone Parse library file:/var/named/zone_name.zoneNote: To run as a system user in order to secure
://s3.51cto.com/wyfs02/M01/6B/62/wKioL1Ushouw-zD4AAGKMG-bVMA217.jpg "title=" 1.jpg " alt= "Wkiol1ushouw-zd4aagkmg-bvma217.jpg"/>Modify the primary service zone file configuration to add a record: This time, serial number is not modified.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/66/wKiom1UshkagJKxLAAFIyJLsv6w469.jpg "style=" float: none; "title=" 1.jpg "alt=" Wkiom1ushkagjkxlaafiyjlsv6w46
id文件名
};
Controls {
inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
Zone "." in {
Type hint;
File "Named.root";
};
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 "test.com" in {
Type master;
About BindThe most widely used DNS server software now is bind (Berkeley Internet Name Domain), which was first written by a student at Berkeley University, and now the latest version is 9, with ISC (Internet Systems Consortium) written and maintained.Bind supports most of the first operating systems (Linux,unix,mac,windows)The name of the bind service is called namedDNS by default using UDP, TCP protocol, using port is (domain), 953 (MDC, remote cont
"Subdomain Authorization" "Experimental description": a new server IP of 192.168.0.112 is configured to become the primary DNS for the test.com subdomain (a.test.com)"Experimental Validation": subdomains can be self-managed, and DNS can be queried for resolving subdomains through the parent domain, but subdomains cannot query the parent domain. "Experimental Steps": 1, for the positive sub-domain author
-eth0:1, ifcfg-eth0:2 ...), within each configuration file, corresponding to a device (eth0, eth0:0, eth0:1 ...).Here, the IP is 10.63.198.234 and 10.63.198.249, here are some explanations for these parameters:Device=eth0Bootproto=nonehwaddr=00:11:d8:c5:7c:8fOnboot=yesDhcp_hostname=btazuoipaddr=10.63.198.234netmask=255.255.255.0gateway=10.63.198.254Type=ethernetDevice stands for Devices, Linux can have a lo
Attention:shutting down the firewallTurn off SELinuxconfiguring vim/etc/resolv.conf DNS on the clientInstallationyum install-y bind bind-chroot bind-utilsMasterConfigurationvim/etc/named.confOptions Itemslisten-on Port: (any ;}; allow-query{any;}; Note out recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside Auto; Bindkeys-file.......iscdlv.key;managed-keys-directoryConfigure View
Configuration file:/Etc/named. conf/Use // and/**/In the named. conf configuration file for comments,
Options {/* options is used to define some environments that affect the entire DNS server. For example, di rectory is used to specify the path of the
1. Experimental backgroundPrior to the Linux DNS configuration 1-dns get started, where only one DNS server, but generally in large networks, through the configuration of the secondary DNS server can improve the reliability of the
Linux DNS configuration has a strange problem-Linux Enterprise Application-Linux server application information. The following is a detailed description. Please take a look at it.
Symptom: I used redhat9.0. For example, I used the image configuration mode to configure abc.com. However, I deleted the image configuration
Tags: DNS split resolution configurationDNS decoupling resolves the same domain name for the intranet to be resolved to a different IP address.The main point is to provide different domain name resolution records according to different clients.Some e-commerce sites in the real-time network in order to let users have a better experience of the resolution faster, the user from different operators to resolve to the corresponding server so that greatly im
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.