Ubuntu Server IP/DNS Modification

Source: Internet
Author: User

Before giving you a detailed introduction to the server, first let everyone know about the Ubuntu server, and then give a comprehensive introduction to the Ubuntu server, hoping to be useful to everyone. The Ubuntu team makes a public commitment to its users: Ubuntu is always free and there is no additional fee for the "Enterprise Edition". In the same free team, bring the best work results to everyone. A website is built in the lab and placed under the Ubuntu server in the VM. You need to configure the website so that it can be accessed within the LAN.

The VM is changed to the "bridge" mode.

(1) modify the IP address of ubuntu Server

Open

 
/Etc/Network/interfacessudo Vim/etc/Network/interfaces

Add the following statement:

 
Auto eth0iface eth0 Inet staticaddress XXX. XXX # IP address netmask XXX. XXX # subnet mask gateway XXX. XXX # Gateway

(2) modify the DNS of ubuntu Server

How to modify the DNS address of an Eni

 
Sudo Vim/etc/resolv. conf

Change to the following content:

 
Search localdomainnameserver 172.16.3.4 the DNS you want to modify to: dnsnameserver 172.16.3.3

(3) The last step of ubuntu server is also the most important step.

Add the command to restart the network configuration in RC. Local:

 
Sudo/etc/init. d/networking restart

Address: http:// OS .51cto.com/art/201001/175343.htm

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.