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.
Mar 03, 2020 · The /etc/resolv.conf will shows the domain search list. Example 1 search suse.com,novell.com,example.com This will fail since it has commas, it needs a single space or tab in between each domain. Example 2 search domainname.net search suse.com search novell.com search lab.novell.com search example.com Jul 06, 2020 · The /etc/resolv.conf is the main configuration file for the DNS name resolver library. The resolver is a set of functions in the C library that provide access to the Internet Domain Name System (DNS). Jan 03, 2018 · Will result in the following /etc/resolv.conf file. cat /etc/resolv.conf. nameserver 192.168.1.1. nameserver 192.168.1.2. search test.corp.net. You would want to limit these parameters to only one ifcfg-ethx file. If you have multiple DNSx and DOMAIN parameters in different files the resolv.conf you get would be based on the last interface that Open /etc/resolvconf/resolv.conf.d/head if you want to add to the start of the file; open /etc/resolvconf/resolv.conf.d/tail if you want to add to the end. Make your changes, save/close the files, and then run sudo resolvconf -u to apply the changes.
On ubuntu 18.04 using NetworkManager. You need to remove the 'resolv.conf' file and let NetworkManager generate one for you. To remove the file in terminal type sudo rm -f /etc/resolv.conf; this will delete the file for you. Reboot the system and NetworkManager will generate a resolv.conf file for you.
However, any resolver library that reads /etc/resolv.conf (and most of them do, in order to be compatible) should work fine with resolvconf. Subscriber 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.
From man resolv.conf. The search list is normally determined from the local domain name; by default, it contains only the local domain name. This may be changed by listing the desired domain search path following the search keyword with spaces or tabs separating the names.
Delete /etc/resolv.conf by typing: sudo rm /etc/resolv.conf When prompted, enter the password you created when installing WSL. Now Enter the following command: sudo vi /etc/resolv.conf VI is driven entirely by hotkeys, so I will put in BOLD all hotkey presses. Now press i to start inserting new content into the file. The word --- INSERT