DNS Configuration Restart lostModified after each rebootDNSconfiguration file/etc/resolv.confLearned from the Internet/etc/resolv.confin theDNSconfiguration is from/etc/resolvconf/resolv.conf.d/headloaded from theSo, withNanoor other editing software to open this configuration file (recommendedNano, easy to get started)sudo nano/etc/resolvconf/resolv.conf.d/headO
DNS configuration is always unavailable. Please take a look !!! -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. Master configuration file named. conf
Options
{
Query-source port 53;
Query-source-v6 port 53;
Directory "/var/named"; // the default
Dump-file "data/cache_dump.db ";
Statistics-file "da
1. Configure Add ip:vi/etc/network/interfaces Modify the following:# The Primary network interfaceAuto Eth0Iface eth0 inet StaticMTU 1410Address 192.168.1.100Address2 #添加多个IP地址Netmask 255.255.255.0Gateway 192.168.1.1Save, restart the NIC service networking restart or/etc/init.d/networking restart2. Modify dns:vi/etc/resolv.conf Add the following contentNameServer 114.114.114.114nameserver 114.114.115.115Permanently change DNS (do not restore after reb
Custom Configuration network IP, gateway, Dns.bat
Copy Code code as follows:
@echo off
setslection1=
set/pslection1= Please enter the IP address:
netshinterfaceipsetaddressname= Local Area Connection source=staticaddr=% slection1%mask=255.255.255.0
setslection2=
set/pslection2= Please enter the gateway address:
netsh Interfaceipsetaddressname= "Local Area Connection" gateway=%slection2%gwmetric=0
Set sl
166. Jun 25 14:28:48 localhost named [18506]: Zone localhost/In: loaded serial 42
167. Jun 25 14:28:48 localhost named [18506]: Running [normal startup]
168. Jun 25 14:28:48 localhost named [18506]: Zone witer666.com/in: sending notifies (Serial 1053891166)
169. Host www.witer666.com check whether forward resolution is normal
170. The displayed content is as follows:
171. www.witer666.com has address 192.168.2.100
172. www.witer666.com has address 192.168.2.102
173. Check whethe
A192.168.44.12Hadoop10 in A192.168.44.13hadoop11 in A192.168.44.14HADOOP12 in A192.168.44.15hadoop13 in A192.168.44.16hadoop14 in A192.168.44.17HADOOP15 in A192.168.44.18hadoop16 in A192.168.44.19 vim/var/named/192.168.44.zone$TTL86400@ in SOA hadoop.com. root.hadoop.com. (1997022700 ; Serial28800 ; Refresh14400 ; Retry3600000 ; Expire86400 ) ; minimum@ in NS Hadoop.1In PTR master.2In PTR Secondarynamenode.3In PTR admin.4In PTR hadoop01.5In PTR hadoop02.6In PTR hadoop03.7In PTR hadoop04.8In PTR
to be manually configured, automatically get it.(4) Restart the network card to make the configuration file effectiveService Network restart650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9E/5E/wKioL1mRKJbikyHuAAArtRI9WzY591.jpg-wh_500x0-wm_ 3-wmp_4-s_1669277228.jpg "title=" qq20170814123533.jpg "alt=" Wkiol1mrkjbikyhuaaartri9wzy591.jpg-wh_50 "/>Comments:All four states must be OK, otherwise the settings are problematic and need to be res
NFS is a Web FileSystem network file system developed by Sun that is equivalent to a win mapped network drive that can "mount" a directory on an NFS server to a local directory on a local machine.The NFS configuration file is:/etc/exports [' eksp2rt] output, exportVi/etc/exports:/home/dir_to_exported clients_nfs (rw, sync and other sharing options)In fact, the configuration and use of NFS shares is the same
DNS configuration instanceCase:Server IP Address: 192.168.127.200Www.abc.com 192.168.127.111 requires that the alias www1.abc.com be used for access.Tec.abc.com 192.168.127.222WKioL1OaxeGzOUyeAAHkQne6JHk825.jpgWKiom1Oaxg_zv1PCAAHcbCJuhYY228.jpgWKioL1OaxeGCIapeAAHQgoOb4Ow404.jpgWKiom1Oaxg-CpqNLAAGTESUWOQ8801.jpgWKioL1OaxeLDssRyAAHyq5qMO9s402.jpgWKiom1Oaxg_DpCWRAAA8XKhr93U404.jpgWKiom1Oaxg-img-uAADJuwbZhc0761
Problem Description:A project on one server calls the WebService service provided on a different network segment server, and the ping is not available and is not called up.Workaround:1, connect the server, locate the configuration file:/etc/resolv.conf2. Modify the configuration fileNameServer 132.252.6.383. Restart the network after saving successfullyService Network restartCareful operation. This command
1. Install the DNS server
1. Software List
BIND 9.3.2
Ftp://ftp.isc.org/isc/bind9/9.3.2/bind-9.3.2.tar.gz
Ftp://ftp.isc.org/isc/bind9/9.4.0a6/bind-9.4.0a6.tar.gz
2. Install BIND 9
Install BIND9:
# Tar zxvf bind-9.3.2.tar.gz
# Cd bind-9.3.2
#./Configure -- prefix =/usr/local/named -- disable-ipv6
# Make make install
Create a BIND User:
# Groupadd bind
# Useradd-g bind-d/usr/local/named-s/sbin/nologin bind
Create a
Work task implementationFirst, basic settings ()( 1 ) to change the host name to WEBServer. 650) this.width=650; "title=" 33.PNG "src=" http://s3.51cto.com/wyfs02/M00/6F/13/wKiom1WRFMSjuhrfAACYPef9m4g798.jpg "alt=" Wkiom1wrfmsjuhrfaacypef9m4g798.jpg "/>( 2 ) Set up intranet IP address is 192.168.1.1/24. 650) this.width=650; "title=" 34.PNG "src=" http://s3.51cto.com/wyfs02/M02/6F/13/wKiom1WRFQOh4EWRAADpapmCAXg014.jpg "alt=" Wkiom1wrfqoh4ewraadpapmcaxg014.jpg "/> ( 3 ) build on this machine
CentOS Network Configuration Example1. Configure DNSVi/etc/resolv.confJoin:Copy CodeThe code is as follows:nameserver 192.168.0.1nameserver 8.8.8.8nameserver 8.8.4.42. Configure the Gateway:Vi/etc/sysconfig/networkJoin:gateway=192.168.0.1Complete the following:Copy CodeThe code is as follows:Networking=yesHostname=localhost.localdomaingateway=192.168.0.13, configure the IP address:Vi/etc/sysconfig/network-scripts/ifcfg-eth0The contents are as follows:
The configuration of the DNS server of ubuntu8.04Server-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Step 1: Install BIND9
Sudo apt-get install bind9
Sudo apt-get install bind9-host dnsutils useful tools for testing)
Sudo apt-get install bind9-doc documentation (optional)
Step 2: configure the main
How to solve the dns configuration problem-Linux Enterprise Application-Linux server application information? The following is a detailed description. Localhost etc] # service named start
Starting named:
Error in named configuration:
Zone zmdcjxx.com/IN: loading from master file zmdcjxx.com. zone failed: file not found
_ Default/zmdcjxx.com/IN: file not found
*//installation bind service3.systemctl start Named.service//Start service4.NETSTAT-UTLNP | grep named//view service port5.RPM-QL bind-9.9.4-50.el7.x86_64//View the path generated during installation6.vim/etc/named.conf//Modify Master File7. Add a configuration area8. Depending on the version of the installation system, the reverse parsing file directory will change.Cd/var/namedCP Named.localhost Linuxma.com.zoneCP Named.localhost 192.168.227.zoneVim/
Let's take a look at the linux System DNS and DHCP configurations. I hope this article will be helpful to you.
Install
Yum install bind-chroot bind-libs bind-utils caching-nameserver system-config-bind
Set the Security enable path
Vi/etc/sysconfig/named
ROOTDIR =/var/named/chroot
Main configuration file
Vi/var/named/chroot/etc/named. conf
Main server path
/Var/named/chroot/var/named/
Secondary server path
/
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.