Have always thought that their own Linux also said the past, in fact, has not kept up with the ever-changing application needs.There are no ready-made documents to look at, too many mistakes. However, after years of accumulation, it is possible to organize an accurate document.Native IP settings:# static interfaceAuto Eth0Iface eth0 inet StaticAddress 192.168.127.11Netmask 255.255.255.0Network 192.168.127.0Broadcast 192.168.127.255Gateway 192.168.127.2Dns-na
future query for the same information.
Three basic profiles required for a pure caching server:
/etc/named.conf
/var/named/named.ca
/var/named/named.local
Create or modify/etc/named.conf:
Generated by named-bootconf.pl
Options {
Directory "/var/named";
/*
* If There is a firewall between for you and nameservers for you want
* To talk to, your might need to uncomment the Query-source
* directive below. Previous versions of BIND always aske
personally test, interested in the use of their own testing.Said so much, each version of the difference seems to be very troublesome, do not know the latest version or later version will not be changed, in fact, there is a more simple version-independent way to prevent the resolv.conf file is rewritten, that is method two.Method Two: independent of version Previously mentioned fixed IP Internet access is mainly modified /etc/network/interfaces This file, configure IP, gateway or something, in
mainland space, Hong Kong space and foreign space, the advantages of the mainland space is the speed of access, the shortcomings of the need for record; Hong Kong's spatial access is between the mainland and abroad; The choice of space to see personal situation, space size words novice hundreds of m enough to use, and so after writing more than enough to consider the replacement.Domain name resolution generally uses dnspod to parse. There are three steps to using the Dnspod:(1) Add the record i
Ubuntu set static IP:
Switch to root, and then enter the/etc/network directory. Backing up interfaces files (a good habit of backing up files)
Edit the interfaces file below and add the following statement:
1 # Assgin static IP by Eric on 26-sep-2012
2 iface eth0 inet static
3 addresses 192.168.196.135 #change to your Static IP
4 netmask 255.255.255.0 #change to your netmask
5 gateway 192.168.196.255 #change to your Getwa Y
6 #We must specify Dns-nameserver here
7 #in orde
label
The label provides four aspects of information:
(1) Hostname (host name)
Include the machine name and the full domain name of the machine. The format is: localhost.local domain, for example, Lgx.linux.net, where LGX is the local machine main name, linux.net is the domain name of this machine.
(2) Domain (field name)
The full domain name of the machine, that is, "in the host name." "Back section. Here input: linux.net
(3) Search for hostnames in additional domains (find host name in
:# Firewall configuration written by lokkit# Manual customization of this file is not recommended.# Note: ifup-post will punch the current nameservers through# Firewall; such entries will ** not * be listed here.: Input ACCEPT: Forward ACCEPT: Output ACCEPT-A input-s 0/0-d 0/0-I lo-j ACCEPT# Allow http, ftp, smtp, ssh, domain via tcp; domain via udp-A input-p tcp-s 0/0-d 0/0 pop3-y-j ACCEPT-A input-p tcp-s 0/0-d 0/0 http-y-j ACCEPT-A input-p tcp-s 0/0
Operating System: ubuntu1204 Server Edition
DNS software: bind9
Newoa.qyjob.net points to the 168.168.168.96 IP Address
Run the following command to install
Sudo apt-Get install bind9 dnsutils bind9-doc
By default. Bind9 is configured as a DNS Cache Server. Therefore, you only need to add the DNS server address to the forwarding list.
Sudo Vim/etc/bind/naemd. conf. Options
Red is to be modified
[Plain]View plaincopy
Options {
Directory "/var/Cache/bind ";
// If there is a firewall between
1. Run the code
Vim/etc/Network/interfaces
2. edit content
Auto LoIface lo Inet loopback# Nic eth0 ConfigurationAuto eth0Iface eth0 Inet staticAddress 192.168.1.30 # static IP AddressNetmask 255.255.255.0Gateway 192.168.1.1# DNS-nameservers 8.8.8.8# Network 192.168.1.0# Broadcast 192.168.1.255# The following two are the network number and broadcast number, which can be calculated by other information, so you do not need to set# Here, DNS-
To set the IP address and DNS resolution server, edit/etc/Network/interfaces:
# Interfaces (5) file used by IFUP (8) and ifdown (8) auto loiface lo Inet loopbackauto eth0iface eth0 Inet static address 192.168.1.6 gateway 192.168.1.1 netmask 255.255.255.0 DNS-nameservers 192.168.1.1 # network 192.168.1.0 # broadcast 192.168.1.255
To temporarily change the DNS server, edit/etc/resolv. conf and add the following content:
Nameserver 8.8.8.8
Resolv
corresponds to a configuration file (ifcfg-eth0, ifcfg-eth0: 1, ifcfg-eth0: 2 ....), each configuration file corresponds to a device (eth0, eth0: 0, eth0: 1 ......).
Here, the IP addresses are 10.63.198.234 and 10.63.198.249, which are explained here:
Device = eth0Bootproto = noneHwaddr = 00: 11: D8: C5: 7c: 8fOnboot = YesDhcp_hostname = btazuoIpaddr = 10.63.198.234Netmask = 255.255.255.0Gateway = 10.63.198.254Type = Ethernet
Device indicates a device. in Linux, there may be many Ethernet int
execute extended options. For more information, see interfaces (5 ). For example, the script contained in the resolvconf package allows you to go to/etc/resolv when the interface is activated. add the specified DNS information to the conf file: iface eth0 inet staticaddress 192.168.0.111netmask 255.255.255.0gateway 192.168.0.1dns-search somedomain. orgdns-nameservers 195.238.2.21 195.238.2.22dns-search parameter somedomain.org meets resolv. the searc
:
20. gif(20.33 KB) PM
2. If you want to modify the NS, select Custom nameservers and enter the NS of the host.
6. gif(15.28 KB) PM
3. If you want to use Godaddy's NS, select default nameservers. The first is the resolution server of the Godaddy host, and the second is the parking resolution server. If the host is not in Godaddy, select the second option only for its resolution server.
7. gif(13.79 KB)Go
the IP address in the Ubuntu command line.CAT/etc/Network/interfaces
# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).
# The loopback network interface
Auto Lo
Iface lo Inet loopback
# The primary network interface
Auto eth0
Iface eth0 Inet static
Address 192.168.1.104
Netmask 255.255.255.0
Network 192.168.1.0
Broadcast 192.168.1.255
Gateway 192.168.1.2
# DNS-* options are imple
(6) master server:
The master server is the source of authorization for all information in the given domain. The domain information it loads comes from the domain information created by the domain administrator.
And locally maintained disk files.
We use "test.com" as an example. We need five basic configuration files:
/Etc/named. conf
/Var/named. ca
/Var/named. local
/Var/named/named.test.com
/Var/named/named.172.16.0
(6.1) create or modify/etc/named. conf:
// Generated by named-bootc
overwritten every time you restart. You only change the link, which has no effect on the original file, and you have to load the content of the original file every time you restart the link, the link modification is invalid.
Solution: modify the original file as follows:
vi /etc/resolvconf/resolv.conf.d/head
This file is exactly the same as the/etc/resolv. conf file. You can add your own nameserver to it so that it will not be overwritten after each restart.
PS: some people on the Internet also
, it is not possible to store so many, root name server often is to tell the client next to request which top-level domain name server.Top-level Nameservers: It is responsible for managing all two-level domain names registered by the top-level domain server, and when it receives a request from the client, the answer may be the final result or the IP address of the top-level domain server that should be requested next.Domain Name server: It is responsi
variable length of the domain name, and the use of strings that help memory for people to use. The IP address is a fixed-length 32-bit binary number is very convenient for computer processing;2) Domain Name server
Responsible for resolving the domain name to IP address. Both TCP and UDP port numbers are 53, and UDP is used primarily, and TCP is used for backup between servers.Four types of domain name servers1) ROOT name server: The highest level domain name server. Records the domain name and
sse4_1 sse4_2 popcnt lahf_lm dts tpr_shadow vnmi flexpriority ept vpidInstall KVM and KVM Builder
apt-get install ubuntu-virt-server python-vm-builder kvm-ipxe Set user group
adduser `id -un` libvirtdadduser `id -un` kvmCheck
After reboot, log on again and run the following command to check
root@kvmhost:~# virsh -c qemu:///system list Id Name State----------------------------------Configure the network
Set/etc/network/interfaces as follows
# The loopback network interfaceauto l
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.