Centos does not have the hostdignslookup command. today, when installing the DNS server, I want to test the DNS server and find that the hostdignslookup command is not installed, get yuminstallbind-untils now... centos does not have the host dig nslookup command. today, when installing the DNS server, I want to test the DNS server and find that the host dig nslookup command is not installed, immediately yum install bind-untils to close the job. if: stop named: [OK] Generating/etc/
login
3. Create the/etc/named. conf file
Options {Directory "/opt/named ";};Zone "." IN {Type hint;File "named. root ";}; // Root Domain Name Server FileZone "localhost" IN {Type master;File "localhost. zone ";Allow-update {none ;};}; // Name resolution of the local hostZone "0.0.127.in-addr. arpa" IN {Type master;File "named. local ";Allow-update {none ;};}; // Reverse resolution of the local hostZone "qtech.edu.cn "{Type master;File "qtech.edu.cn. zone ";Allow-update {none ;};
of the owner and the group to Named,selinux remember to close#/var/logmessagesMar 20 14:20:20 Master named[3186]: none:0: Open:/etc/rndc.key:permission deniedMar 20 14:20:20 Master named[3186]: couldn ' t add command channel 127.0.0.1#953:permission denied[[Email protected] Master ~]# chown named:named/var/named/*7. Now that it's okay, let's restart the named service and discover that the card is in Generating/etc/rndc.key: It's been a long time.Workaround:Execute the following command:
Mylinux.com 172.16.100.0/24NS 172.16.100.1www 172.16.100.1, 172.16.100.3Mail 172.16.100.24FTP wwwDns:bind SoftwareBerkeley Internet Name DomainIscwww.isc.org[email protected] yum.repos.d]# Yum list |grep "^bind"[Email protected] yum.repos.d]# yum-y install bind.i686/etc/named.conf master configuration file, which is used to define the working properties of the bind process, the definition of the zone, etc./etc/rndc.key key File,/etc/rndc.conf configuration information/VAR/NAMED/XX Zone data file
-utils: bind client Tool
Program file:/usr/sbin/named
Main Program Directory:/var/named
Main configuration file:/etc/named. conf
Bind permissions: After named is installed, the user named system user is automatically created.3.2 BIND configuration file explanation
1/etc/logrotate. d/named/etc/named. conf # Master configuration file 2? /Etc/named. rfc1912.zones # region configuration file (included in the main configuration file using the include command) 3? /Etc/named. Root. Key # The key fil
https://www.isc.org/downloads/2. Unzip the tar zxvf bind-9.9.7rc1.tar.gzCD BIND-9.9.7RC13. Compile and install./configure--prefix=/usr/local/named--enable-threads #--enable-threadsHint No OpenSSLChecking for OpenSSL Library ... Configure:error:OpenSSL is not found in any of/usr/usr/local/usr/local/ssl/usr/pkg /USR/SFW; Use--with-openssl=/path--------------------------------------------------------------------------------------------------Hint No OpenSSLSolution:Yum Install OpenSSLYum Install Ope
/dump/named_dump.db "; Statistics-file "/var/stats/named.stats"; allow-query {any;}; }; Zone "." {type hint; file "Named.root";}; Zone "localhost" {type master; file "Named.localhost";}; Zone "0.0.127.in-addr.arpa" {type master; file "named.127.0.0";}; Zone "365.com" {type master; file "named.365.com"; allow-transfer {192.168.1.241;};//notify yes;}; Zone "1.168.192.in-addr.arpa" {type master; file "named.192.168.1"; allow-transfer {192.168.1.241;};//notify yes;}; # Use with the following in name
One, install bind1. Download bind http://www.isc.org can also go to this site to download bind9 DNS software.2. Compile and install
Copy Code code as follows:
# tar ZXVF bind-9.4.0.tar.gz
# CD bind-9.4.0
#./configure sysconfdir=/etc//More installation options./configure--help
# make
# make Install
Two, configure bindA. Creating the required files1)./etc/named.conf# vi/etc/named.conf Launch Save or touch/etc/named.conf2)./etc/rndc.conf#
promoted, and his career develops rapidly. In addition to hard work, talent presentation, and career expansion, there is also a task for many people to adjust their careers and revise their objectives. People in their 30 s should have a clearer understanding of themselves and the environment. Check whether the selected career, the selected career route, and the determined life goals are in line with the reality. If there are discrepancies, adjust the
/ifcfg-eth1DEVICE = eth1 # Nic DEVICE name
BOOTPROTO = static # static IP
IPADDR = 192.168.1.133 # static IP Address
NETMASK = 255.255.255.0 # Subnet Mask
GATEWAY = 192.168.1.1 # GATEWAY
If the configuration is correct, you can access the Internet now. ping An IP address to test. However, domain name resolution fails, so you need to set the local dns.[Root @ localhost named] # vi/etc/resolv. conf
Content:Nameserver 8.8.8.8 # DNS Server
Nameserver 8.8.4.4 # backup DNS Server
Now, the network has
# Vi sina. zone
4. Check the syntax error of the region file:
5. Change all groups of the region file:
6. Start the DNS server:# Service named restart // restart the DNS service# Rndc reload // reload the key
7. Test DNS:
The structure and format of the reverse resolution region file are similar to those of the region file, except that the main content of this file is to create a pointer PTR resource record mapped to the DNS domain name.
1. Modif
instructions are correct)
Forward resolution (from domain name to IP address)
Named-checkzone "localhost"/var/named/localhost. zone
Reverse resolution (IP to domain name)
Named-checkzone "0.0.27.in-addr. arpa"/var/named. local
Rndc-confgen-r/dev/urandom-a generates rndc. key. If this key is not available, named cannot be started.
Chown named: named/etc/rndc. key
queriesFirst, a parent domain server and a subdomain server are configured with reference to dns-05-forwarding, and global forwarding is set in the subdomain to forward all non-intra-domain resolution requests to the parent domain server. use dig command test, which can be resolved at this time. [[emailprotected]~]#dig-tawww.baidu.com@172.18.71.102;setting in the parent domain Server master configuration file /etc/named.conf does not allow recursive queries to any hosts.Options {... allow-recu
in NS ns.example.info. In a 172.16.0.82 in MX ten ns.linuxde.net. NS in a 172.16.0.82# RNDC ReloadServer Reload Successful2. Configure the DNS server# vim/etc/named.conf# Add these lines belowZone "Linuxde.net" in {Type slave;Masters {172.16.0.82;};File "Slaves/linuxde.net.wan";};# RNDC ReloadServer Reload Successful#
the Hosts file;Query options:+[no]trace: Trace parsing process;+[no]recurse: Recursive parsing;Note: Reverse parsing testDig-x IPSimulate full zone transfer:Dig-t AXFR DOMAIN [@server]Host command:Host [-t Rr_type] name Server_ipnslookup command:nslookup [-options] [name] [Server]Interactive mode:Nslookup>Server IP: Queries the DNS server with the specified IP;Set Q=rr_type: The type of resource record to query;Name: names to query;RNDC command: Name
Soalris10 uses bind9.2.4 to set up a dynamic dns server-Linux Enterprise Application-Linux server application information. The following is a detailed description. The view function of bind 9 is used to parse different addresses by IP address.
Dns server address: dns.test.com 192.168.0.211
Web server address: www.test.com 192.168.0.100 192.168.0.200
China Telecom address: 192.168.0.210 resolved to 192.168.0.100
China Netcom address: 192.168.0.213 resolved to 192.168.0.200
------------------
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.