If you have the opportunity to build your own server in your local area network to configure a static ip address and dns, you must modify the ip address so that the ip address remains unchanged for future access convenience. Next, let's talk about how to set such an ip address
DNS is the server used to resolve the back-end IP address of the domain name. Like Windows and Linux, you can customize the DNS address, which is easy to modify. When Linux is used as a website server and Wordpress query is slow, you can try to modify a quick DNS server to s
[[Email protected]~]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0 # NIC nameBootproto=static # Static IP Address Acquisition Status such as: DHCP indicates auto get IP Addressipaddr=192.168.186.128 #IP Addressnetmask=255.255.255.0 # Subnet MaskOnboot=yes # whether to activate at boot timegateway=192.168.1.1Modify Linux System of Host name :[[Email protected]~]# vi/etc/sysconfig/networkHostname=cuilong # Modify host name, restart effectivega
Add DNS server address in Linux
Ping www.baidu.com on linux fails, which indicates that the Domain Name Server is not properly configured.Cat/etc/resolv. conf check the configured IP address. How can I know the IP address of the Domain Name Server?
I found that windows computers can be used for hundreds of times, ind
In general, everyone's DNS address is automatically acquired state, but sometimes we also need to query, manually set the DNS address. The following small series for you to introduce the WIN7 system query, set DNS address the corr
Internet as a distributed database that maps domain names and IP addresses to each other, making it easier for people to access the Internet without remembering the number of IP strings that can be read directly by the machine.relationship of IP address, subnet mask, gateway, DNSAn IP address that indicates your computer's identity! A subnet mask, which can be used to indicate the subnet partition, the sub
In Debian, the IP address configuration parameters are in the interface under the/etc/Network/directory, while the DNS configuration parameters are in the resolv. in Conf, the following describes the configuration parameters:
======================================
IP Address Settings:/etc/Network/interface
// Obtain Dynamic DHCP
# Start the system activation
Modify IP
cmd/c netsh interface ip set address name= "Local Area Connection" Source=static addr=211.82.56.253 mask=255.255.255.0 gateway=211.82.56.1 Gwmetric=1
Modify DNS
cmd/c netsh interface ip set DNS name= "Local Area Connection" Source=static addr=202.99.192.66
To configure or update an IP address:
WMIC N
1. Set IP address, gateway Cp/etc/network/interfaces/etc/network/interfaces.bak # Backing up legacy configuration Files Vi/etc/network/interfaces # Edit Network adapter profile # The Loopback network interfaceAuto LoIface Lo inet Loopback# The Primary network interfaceAuto eth0 # Auto Connect networkAllow-hotplug eth0Iface eth0 inet Static # static means using dynamic IP with fixed ip,dhcp representationsAddress 192.168.21.166 # set IP addressnetmask
Specific methods
Right-click the desktop Network Neighborhood → select "Properties" → "Local Area Connection" of the network card to select "Properties" → "general" → "Internet Protocol (TCP/IP)" To view its properties:
If the router is the default setting, then the computer's various network parameters should be set to:
IP Address: 192.168.1.x (2 Mask: 255.255.255.0Gateway: 192.168.1.1 DNS: Fill in
temporarily modify IP address, gateway, hostname, DNS, effective immediately, no restart (after restart)1. Modify Host Name#hostname Slyar2. Modify the IP address (eth0 is the NIC name)#ifconfig eth0 192.168.1.5 netmask 255.255.255.03. Modify the default gateway (Eth0 is the NIC name)#route add default GW 192.168.1.1 Dev eth04. Modify
WinXPCMD------------->netsh winsock reset=============Related knowledge:The netsh winsock reset command means to reset the Winsock directory. If there is a problem with the Winsock protocol configuration on a machine that will cause problems such as network connectivity, you will need to reset the Winsock directory with the Netsh winsock reset command to restore the network. Winsock is a Windows network programming interface that starts with a built-in command from Windows XP SP2 and uses Netsh
2. Set a fixed IP address and DNS on Ubuntu.
1) Open a terminal.
2) set a fixed IP Address
Enter sudo VI/etc/Network/interfaces on the terminal, which is usually displayed:
Auto Lo
Iface lo Inet loopback
Add the following content below:
Auto eth0Iface eth0 Inet staticAddress 192.168.0.120 # The fixed IP address
Note: System: debian6.0.4IP address: 192.168.21.166 subnet mask: 255.255.255.0 Gateway: 192.168.21.2DNS: 8.8.8.88.8.4.4 operation: System O M reminder: qihang01 original content copyright, reprinted, please indicate the source and original article links 1. set the IP address, Gateway nano/etc/network/inte
Note:
System: debian 6.0.4IP address: 192.168.21.166Subne
= "2d92dacb-4277-4846-ad83-c6d2a9b27e35"onboot= "Yes"Ipaddr= "192.168.1.30"netmask= "255.255.255.0"Gateway= "192.168.1.1": Wq Save Exit[Root@centos ~]# Service Network restart[Root@centos ~] #ifconfigSee if the modified IP address is in effect3.4 Modifying DNS settingsCurrent host name View[Root@centos ~]# vim/etc/resolv.confAdd the following to the open file 8.8.8.8 for googledns,61.144.56.100 local
1, first click on the Desktop Start menu, and then open the Run dialog box, in the Run dialog box input "cmd";
2, in the Open Command Prompt window, enter "Ipconfig/all" to view all the relevant configuration of TCP/IP;
4, from the above picture not only can see the DNS address, but also can see the user's IP address and other information;
5, then modif
DNS is the server used to resolve the back-end IP address of the domain name. Like Windows and Linux, you can customize the DNS address, which is easy to modify. When Linux is used as a website server and Wordpress query is slow, you can try to modify a quick DNS server to s
RHEL7 IP address configuration, DNS configurationConfigure IPVim/etc/sysconfig/network-scripts/ifcfg-ens33Configure DNSVim/etc/resolv.confWrite nameserver DNS AddressYou can also use Nmtui to modify the IP configurationRestart the NICSystemctl Restart NetworkIfconfig View IPIP addr Show (can be abbreviated to IP a)Temporarily modify the IP
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.