Scripting function: To detect the specified domain name by using ICMP ping or Tcp/syn to detect the validity of the domain name before probing.
file:check.host.pl #!/usr/bin/perl use strict;
Use Net::P ing;
Use Net::D ns;
Use Time::hires qw (); $|
= 1;
My $DEFAULT _timeout = 2;
My $PING _timeout = 2;
My $DNS _timeout = 3;
### query domain name is valid sub Querydomain {my $domain = shift ();
my $query = ';
My $dns = Net::D ns::resolver->new (tcp_timeout => $DNS _timeout, udp_timeou
, see interfaces (5 ).
Source/etc/network/interfaces. d /*
# The loopback network interfaceAuto loIface lo inet loopback
# The primary network interfaceAuto enp0s3Iface enp0s3 inet staticAddress 192.168.188.101Netmask 255.0.0.0Network 192.168.188.0Gateway 192.168.188.253Dns-nameservers 8.8.8.8Dns-nameservers 114.114.114.114Dns-nameservers 192.168.188.253Dhcp is c
Download the corresponding VirtualBox and Ubuntu image files firstInstalling the Ubuntu operating systemA network settingSet the network connection mode of the virtual machine to bridge mode, noting that the wireless network card should match the name of the wireless network card of the computer.Applicable in Windows Ipconfig/all View the following information subnet mask for local wireless networksDefault GatewayDNS Server ListEdit file/etc/network/interfaces in Ubuntu system, joinAuto ENP0S3If
gateway-may require a local connection to the local host to enable VMware Bridge protocal)650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8B/E4/wKiom1hblG_gdA-AAAAyVxGQYEU651.png "title=" net_ Bridge_mode. PNG "alt=" Wkiom1hblg_gda-aaaayvxgqyeu651.png "/>Set up a virtual machine can configure multiple virtual network cards to obtain multiple IP addresses, only need to change the/etc/network/interfaces file to add eth0 virtual subnets:Auto Eth0Iface eth0 inet StaticAddress 10.66.47.8N
information, click the domain name product on the right side of the launch can enter the settings interface.
One of the most frequently used settings interface is the nameservers, the default is GoDaddy's own DNS domain name server URL, I changed the image to Dnspod address.
Assume that you use GoDaddy's domain name server. No need to change nameservers, directly click into the DNS Zone file to
1. Edit/etc/network/interfaces Vim/etc/network/interfaces 2. Add the following five items to the/etc/network/interfaces
Static Declaration (using
Static IP address: Address
Network Gateway: Gateway
netmask/subnet: Netmask
DNS nameservers: dns-nameservers
3. The following files have been modified # This file describes the network interfaces available on your system# and h
invalid.The workaround is to modify the actual original file as follows:sudo vi/etc/resolvconf/resolv.conf.d/headFind this file is identical to the/etc/resolv.conf file, which is right, add your own nameserver inside, so that each reboot will not be rewritten.PS: Some people on the internet also said that the modification of /etc/resolvconf/resolv.conf.d/base this file is OK, I did not personally test, interested in the use of their own testing.Said so much, each version of the difference seems
In a Linux system, a virtual machine is installed using a graphical interface. Start Virt-manager first, of course, no installation virt-manager need to be installed first.1 $ apt-get Install Virt-manager 2 $ virt-managerI. Preparatory work.1. Installing the virtual machine environment KVM on Linux Systems1 $ apt-get Install KVM QEMU-KVM libvirt-bin virtinst bridge-utils virt-viewer 2 $ adduser root LIBVIRTD2. Copy the installed system ISO file or img file to the/var/lib/libvirt/images/directory
Many software are not installed and need to be installed.Official Guide: https://help.ubuntu.com/lts/serverguide/index.html1. Modify the network configuration fileUse Ifconfig to view the local network card, obtain the network card name P2P1, if only lo, execute DMESG | grep eth.Modify the/etc/network/interfaces file, this configuration has been updated, added DNS configurationsudo vim/etc/network/interfacesIface eth0 inet static address 192.168.3.3 netmask 255.255.255.0 Gateway 192.168
interfaceAuto LoIface Lo inet Loopback# The Primary network interfaceAuto Eth0Iface eth0 inet StaticAddress 192.168.1.104Netmask 255.255.255.0Network 192.168.1.0Broadcast 192.168.1.255Gateway 192.168.1.2# Dns-* Options is implemented by the RESOLVCONF package, if installedDns-nameservers 58.22.96.66 218.104.128.106 202.101.138.8Dns-search. COMRestart network card:/etc/init.d/networking RestatrRedhat Linux version command line set IP:ifconfig eth0 New
people on the internet also said that the modification of /etc/resolvconf/resolv.conf.d/base this file is OK, I did not 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 versionThe previous mention
Lin Bingwen Evankaka Original works. Reprint please specify the source Http://blog.csdn.net/evankakaOperating system: Unbuntu14.04Virtual machine: VMware10First, network settings1. Set up VMware Bridge ProtocolLocal link, Properties->vmware Bridge Protocol Hook2, then the host set static IP (if you have set the No tube)3. VMware settingsEdit-"Virtual network editor"4. Ununtu settingConfirm off, next set Ubuntu IP and DNS, Terminal: (Alt+ctrl+t Open)sudo vi/etc/network/interfacesThen enter the fo
Host machine win7linux ubuntu 14.04 LTS reference: Linux series: Ubuntu virtual machine Set fixed IP internet (configure IP, gateway, DNS, prevent resolv.conf from being rewritten) 1 Win7 set up virtual NIC 82 after setting up the virtual machine, restore the default settings first. It's on the VMnet8. Set 3 to enter Linux through Ifconfig view current NICIn Linux, you can see the current Linux network card through Ifconfig. (the default appears to be sort from 0)The eth0 in the virtual machine
Lin Bingwen Evankaka Original works. Reprint please specify the source Http://blog.csdn.net/evankakaOperating system: Unbuntu14.04Virtual machine: VMware10First, network settings1. Set up VMware Bridge ProtocolLocal link, Properties->vmware Bridge Protocol Hook2, then the host set the static IP (assuming the set of no tube)3. VMware settingsEdit-"Virtual network editor"4. Ununtu settingConfirm off, next set Ubuntu IP and DNS, Terminal: (Alt+ctrl+t Open)sudo vi/etc/network/interfacesThen enter th
Internet, the network card name does not have the same name as the network card now2. Enter vim/etc/network/interfaces at the command line, use the editor to open the interfaces configuration file, and enter the following code.1 # Interfaces (5) file used by Ifup (8) and Ifdown (8)2 Auto Lo3 iface Lo inet loopback4 5 Auto ens33 6 iface ens33 inet static7 Address 192.168.1.78 netmask 255.255.255.09 Gateway 192.168.1.1Ten dns-nameservers 218.85.157.99
available
Because previous releases supported
It and it is used by large sites
For load balancing.
allow-query {any;};
Allow-transfer {any;};
Transfers-in 10;
Default_xfers_running, cannot be
Set > than max_xfers_running (20)
Transfers-per-ns 2;
Default_xfers_per_ns
Transfers-out 0;
Not implemented
Max-transfer-time-in 120;
Max_xfer_time; The default number
Of minutes an inbound zone transfer
May run. May is set on a per-zone
Basis.
Transfer-format One-answer;
Query-source address * port *;
/*
network interface. In we case it should is static.Auto ENP0S3Iface enp0s3 inet StaticThen add the static IP configuration as follows.Auto ENP0S3Iface enp0s3 inet StaticAddress 192.168.1.10Netmask 255.255.255.0Gateway 192.168.1.1Dns-nameservers 8.8.8.8 8.8.4.4Restart Networking ServiceAfter setting-IP Configuration, we need to restart Ubuntu networking service.sudo ip addr flush enp0s3 sudo systemctl restart Networking.serviceVerify the static IP con
Ubuntu system assigns fixed IPInputsudo vim /etc/network/interfacesAdd the following to the content (the original content needs to be emptied)auto ens33iface ens33 inet staticaddress 192.168.219.100netmask 255.255.255.0gateway 192.168.219.2dns-nameservers 192.168.219.2Here's a detailed explanation.auto ens33iface ens33 inet static# 分配的 固定 ip 192.168.219是根据你的虚拟网卡来决定的,在第一步里面已经分配了address 192.168.219.100# 子网掩码 固定的netmask 255.255.255.0# 网关 默认都是 x.x.x.2 但是
follows:Copy codeThe code is as follows: sudo vi/etc/resolvconf/resolv. conf. d/headThis 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 say that modifying the/etc/resolvconf/resolv. conf. d/base file is fine. I did not test it myself. if you are interested, you can test it on your own.
Having said so much, the differences between different versions seem quite
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.