Ubuntu Server IP/DNS Modification

Source: Internet
Author: User
Tags nameserver

Ubuntu Server sets up a website in the IP address/DNS lab and stores it under the Ubuntu Server in the VM. You need to configure the website so that it can be accessed in the LAN. The VM is changed to the "bridge" mode. (1) Change the IP address of Ubuntu Server to open [plain]/etc/network/interfaces sudo vim/etc/network/interfaces and add the following statement: [plain] auto eth0 iface eth0 inet static address xxx. xxx. xxx. xxx # IP address netmask xxx. xxx. xxx. xxx # subnet mask gateway xxx. xxx. xxx. xxx # Gateway (2) How does the Ubuntu Server modify the DNS address of the NIC [plain] sudo vim/etc/resolv. change conf to the following content: [plain] search localdomain nameserver 172.16.3.4 DNS nameserver 172.16.3.3 to be modified (3) The last step of Ubuntu Server is also the most important step. Add the command to restart the network configuration in rc. local: [plain] sudo/etc/init. d/networking restart

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.