Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu amend resolv.conf restart failure problem     - CentOS use wget (Linux)

- Linux system performance analysis and top command ps.pstree Comments (Linux)

- Android project using the command to create and install the package (Programming)

- Java NIO1: I / O model overview (Programming)

- CentOS 7 install Hadoop-cdh-2.5 on Mesos (Server)

- JavaScript function part (Programming)

- Oracle 12C with multi-column index (Database)

- Oracle RMAN backups of the control file backup (Database)

- Oracle RMAN-06023 and ORA-19693 errors (Database)

- Linux, ls command to achieve (Linux)

- IOwait Linux system monitoring diagnostic tools (Linux)

- Editor of the popular Linux Gvim (Linux)

- Java recognize simple codes (Programming)

- The difference between IPython and Python (Linux)

- Git uses Details (Linux)

- Use calcurse schedule appointments and to-do in the Linux terminal (Linux)

- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)

- JavaScript prototype and the prototype chain (Programming)

- Towards Docker (Server)

- Linux kernel IPv6 protocol closed manner (Linux)

 
         
  Ubuntu amend resolv.conf restart failure problem
     
  Add Date : 2018-11-21      
         
         
         
  Under normal circumstances, we can set the DNS address resolv.conf in Ubuntu system. But after the restart, resolv.conf the address will still be returned to the original content.

This is because the resolv.conf file is actually a Link file

There is a resolvconf service in Ubuntu, this service is used to control the content of the /etc/resolv.conf. So once we restart the system or the service, then the /etc/resolv.conf file contents will be restored to the original content. So directly modify /etc/resolv.conf does not solve the problem.

Solution:

1. Define the DNS address in network card configuration file:

iface eth0 inet static

address 192.168.0.10

netmask 255.255.255.0

gateway 192.168.0.1

dns-nameserver 8.8.8.8 8.8.4.4

2. Modify the configuration file resolvconf service:

vim /etc/resolvconf/resolv.conf.d/base

Where you can add or modify:

nameserver 8.8.8.88.8.4.4
     
         
         
         
  More:      
 
- Linux input and output redirection (Linux)
- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)
- Lambda expressions of evolution (Programming)
- The difference between VMware virtual machine network mode (Linux)
- Installing PHP Memcache extension under Linux (Server)
- You know the difference between URL, URI and URN among you (Linux)
- Ubuntu install Vendetta Online 14.04 (Linux)
- Linux supports serial output method (Linux)
- Spring declarative transaction management (Programming)
- Spark parquet merge metadata problem (Server)
- Kitematic how seamless and DockerFILE (Server)
- CentOS 6.4 installation and configuration LNMP build PHP server runtime environment (Server)
- Linux User Rights Study Notes (Linux)
- Practical top command (Linux)
- CentOS 7 Add yum source (Linux)
- SecureCRT session buffer size settings (Linux)
- Linux keyboard recording script (Linux)
- Linux installation and error under codeblocks exclude [Ubuntu 10.04] (Linux)
- Sshuttle A VPN-based transparent proxy that uses ssh (Server)
- Ubuntu 14.04 users how to install VLC 2.2.0 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.