Trying to use freshly installed Windows Subsytem for Linux (Ubuntu 18.04) to connect to a server at work. I am using the Cisco Anyconnect VPN to connect to my companies network, this is fine as I can ping my server from the windows command prompt.
ipconfig shows the following: Windows IP Configuration
Ethernet adapter Ethernet 2:
Connection-specific DNS Suffix . : company.com
Link-local IPv6 Address . . . . . : xx11::11xx:xx1x:xx11:1x1x%11
Link-local IPv6 Address . . . . . : yy22::y2yy:2y22:2y22:2y22%22
IPv4 Address. . . . . . . . . . . : 192.168.11.111
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : ::
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : zz33::z33z:z333:3z3z:333z%3
IPv4 Address. . . . . . . . . . . : 192.168.2.222
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.3.3
In the Ubuntu 18.04 shell, the default /etc/resolv.conf contains the following:
# This file was automatically generated by WSL. To stop automatic generation of this file, remove this line
nameserver 192.168.3.3
nameserver 192.168.44.44
nameserver 192.168.55.55
search company.com
Pinging my work server results in:
employee@home:~$ ping [email protected]
ping: [email protected]: Name or service not known
Following some forum questions about a similar problem, I edited my /etc/resolve.conf file to only include my work VPN's ip address that I could see in the output from ipconfig listed above. My /etc/resolve.conf now looks like:
nameserver 192.168.11.111
search company.com
Pinging my work server now results in:
employee@home:~$ ping [email protected]
ping: [email protected]: Temporary failure in name resolution
Different error now, but still no dice. Also tried pinging google.com and that host name could not be resolved either (before and after the resolve.conf changes.
I also tried using the following in my /etc/resolve.conf to no avail:
nameserver 192.168.11.111
search company.com
nameserver 192.168.3.3
nameserver 192.168.44.44
nameserver 192.168.55.55
ping: [email protected]: Name of service not known.
And I also used an @company.com-less hostname, again to no avail.
Any thoughts? All the posts I have read show that my first step works, and I have not seen the "Temporary failure in name resolution" error in any of them as well.
Update: Here are screenshots of the Anyconnect VPN info.
Thanks!