The /etc/resolv.conf configuration file contains information that allows a computer to convert alpha-numeric domain names into the numeric IP addresses. The process of converting domain names to IP addresses is called resolving. When using DHCP, dhclient usually rewrites resolv.conf with information received from the DHCP server.

You need to use the text editor such as vi / vim or joe make changes to /etc/resolv.conf file. You must be logged in as root user in order to change this file. The /etc/resolv.conf is resolver configuration file. You can set nameserver ip address and domain search query name in this file. Edit File Using Vi Type the following command: vi /etc /etc/resolv.conf nameserver ::1 nameserver 127.0.0.1 Make sure to protect /etc/resolv.conf from modification as described in Domain name resolution#Overwriting of /etc/resolv.conf. The upstream DNS server addresses must then be specified in dnsmasq's configuration file as server=server_address. Also add no-resolv so dnsmasq does not needlessly 5. Type "cat /etc/resolv.conf". and see "cat: /etc/resolv.conf: No such file or directory". 6. Check network settings in the lower right corner. 7. Click on the "auto DNS server" radio button (which was already enabled). 8. The DNS setting is back and everything works again. 9. Reboot CloudReady, and DNS setting is gone again. When using DHCP, dhclient (8) usually rewrites /etc/resolv.conf with information received from the DHCP server. /etc/hosts /etc/hosts is a simple text database which works in conjunction with DNS and NIS to provide host name to IP address mappings.

This mode is less disruptive as /etc/resolv.conf can continue to be managed by other packages. Note: The mode of operation of systemd-resolved is detected automatically, depending on whether /etc/resolv.conf is a symlink to the local stub DNS resolver file or contains server names.

In this case /etc/resolv.conf will be left alone on WSL as expected too, even if you don't have that section in wsl.conf. This issue is currently in an unholy state of open and by-design. Tidying up with a status closed since the behavior cited in the OP is intended, even on Real Linux. With BIND 8.3.3, the DNS client can connect to IPv6 DNS servers using an IPv6 transport. To enable such a connection, enter an IPv6 address after nameserver in the resolv.conf file. An example /etc/resolv.conf file with IPv6 name servers would look like the following.

The /etc/resolv.conf file is used to point the node where the IP address and DNS matches the system-wide DNS server name. With RAC, you edit the /etc/resolv.conf file on each RAC node and always make sure the file contains the following entries, where the IP address and domain match those of your DNS server and the domain you have configured.

In this case /etc/resolv.conf will be left alone on WSL as expected too, even if you don't have that section in wsl.conf. This issue is currently in an unholy state of open and by-design. Tidying up with a status closed since the behavior cited in the OP is intended, even on Real Linux. With BIND 8.3.3, the DNS client can connect to IPv6 DNS servers using an IPv6 transport. To enable such a connection, enter an IPv6 address after nameserver in the resolv.conf file. An example /etc/resolv.conf file with IPv6 name servers would look like the following. In short each process requesting DNS will read /etc/resolv.conf over library. The NSS is layered on top of this, and is configured by /etc/nsswitch.conf. Linux DNS config are located in the file /etc/resolv.conf BUT there are a number of programs/services that wants to automatically manage and handle the DNS configuration file at /etc/resolv.conf. In some situations you may want to manage this file yourself. This mode is less disruptive as /etc/resolv.conf can continue to be managed by other packages. Note: The mode of operation of systemd-resolved is detected automatically, depending on whether /etc/resolv.conf is a symlink to the local stub DNS resolver file or contains server names.