View Linux system version information and modify DNS address methods

Source: Internet
Author: User

It is possible that we installed the Linux system for a long time, perhaps through a number of user handover, to our hands when we do not know what this VPS is installed system, if the system is not clear to use the command, etc. are not the same. So we need to know what the VPS system is before we operate the command.

First, view the Linux VPS system approach

Cat/etc/redhat-release

Use the command above, and then get the system version of the system.

Here the old Chiang test to the system is the CentOS 5.10 version.

If we still need to see the kernel version, 32 or 64, then use the following command

Uname-a

You can see the old Chiang this machine is a 32-bit system.

Second, modify Linux DNS

There are times when the default Linux system uses DNS instability and we need to modify other third party stable DNS.

Execute vi/etc/resolv.conf

Then we'll see the VPS system default DNS and then modify the DNS services we need

The corresponding format modification is saved and then restarted to take effect.

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.