From: B. <v....@vo...> - 2007-04-13 13:27:28
|
Dne p=E1tek 13.dubna 2007 15:16:28 David Lindel=F6f <dav...@ad...> napsal(a): > Dear all, >=20 > I have setup my OpenVPN client to connect to a server identified by an > entry in the /etc/hosts file, e.g. >=20 > 123.456.789.123 vpn.foo.bar vpn >=20 > And in the client.conf I have the corresponding entry >=20 > remote vpn.foo.bar 1194 >=20 > But it seems that when a /etc/resolv.conf file exists (such as when > the client runs a DHCP client) OpenVPN never reads the entry > from /etc/hosts, and only tries (and fails) to use the DNS. >=20 > Is this intentional? If yes, is there any way to tell OpenVPN to > lookup the server's IP address from /etc/hosts? >=20 > Best regards, > -- > -------------------------------------------------- > David Lindel=F6f Can you resolve the vpn.foo.bar from whole system ? eg. ping vpn.foo.bar look at /etc/nsswitch.conf , check if there is a line saying: hosts: files dns -- Vladimir Benc |