Modify DNS information in Ubuntu

Source: Internet
Author: User
Tags nameserver
Ubuntu DNS information modification found that recently opened various web pages, often play the same advertisement for me, it should be DNS hijacking. Modify it ~ Java code sudovim/etc/resolv. conf will find that the file starts with Java code # Dynamicresolv. conf (5) filefor... ubuntu DNS information modification found that recently opened various web pages, often play the same advertisement for me, it should be DNS hijacking. Modify it ~ Java code sudo vim/etc/resolv. conf will find that the file starts with Java code # Dynamic resolv. conf (5) file for glibc resolver (3) generated by resolvconf (8) # do not edit this file by hand -- your changes will be overwritten. this file is dynamically generated BY the resolvconf program. do not modify it manually. the modified information will be overwritten. Solution: Java code cd/etc/resolvconf/resolv. conf. d touch tail vim tail then follow resolv. add the internationally recognized DNS server Java code in the conf DNS Format # nameserver 8.8.8.8 nameserver 8.8.4.4 provided by Google # nameserver 208.67.222.222 provided by OpenDNS, restart it, and view resolv. conf, you will find that the modified Java code/etc/init. d/resolvconf restart sudo vim/etc/resolv. conf
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.