How to resolve DNS in linux

Source: Internet
Author: User
Linux cannot resolve the DNS solution. today, you need to call the Weibo interface to add a website to the server, but it cannot be implemented in any way. At the beginning, the solution was to dig the interface IP address and add the hosts resolution to implement interface communication. Later, I thought this was not a fundamental solution. View/etc... linux does not support DNS resolution. to add a website on the server today, you need to call the Weibo interface, but it cannot be implemented. At the beginning, the solution was to dig the interface IP address and add the hosts resolution to implement interface communication. Later, I thought this was not a fundamental solution. View/etc/resolv. conf. There are many rows of nameserver, and # comments are added for those that cannot be parsed. Later, a php test file could not be parsed. Test file content more test. php The test. php file cannot be opened during access to the root directory. The following is a solution. View the host name = localhost. aaa on the local machine and write the following content in the/etc/resolv. conf file: # aaa # note the hostname value nameserver 114.114.114.114 nameserver 8.8.8.8 to delete all redundant nameservers. Restart the NIC/etc/init. d/network restar to test the access to test. php. VSFTP service is also available on the local machine, which indicates that browsing or transferring files is slow. another method for searching through the network is in vsftpd. add reverse_lookup_enable = NO to the conf file and restart vsftpd.
Related Article

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.