During boot up, messages flashed on my computer screen, among which are the following:
DHCPACK from 192.168.200.1
bound to 192.168.200.12----> renewal in 432600 seconds
The contents of my /etc/hosts file:
127.0.0.1 localhost
::1 localhost
The contents of my /etc/resolv.conf file:
#Generated by fx0 client
nameserver 192.168.1.1
lookup file bind
Other relevant information:
A. My machine running OpenBSD 5.7 beta is used as a desktop client
B. It is connected to a router which is used to access the internet
C. Connections to the internet are configured to use DHCP
D. I prefer to use my own DNS servers, not those of supplied by the router or the ISP
I am able to surf the internet without a VPN connection. However after connecting to a VPN server, I am unable to surf the internet.
I encountered a similar problem on a machine running Debian Wheezy. After I installed the package resolvconf and added my preferred DNS servers to /etc/resolvconf/resolv.conf.d/head, I am now able to surf the internet even with a VPN connection. (I noticed there is no package resolvconf for OpenBSD.)
How do I fix the above DNS resolution problem?