On 10/04/2017 04:45 PM, Simon Deziel wrote: > Hi Iliana, > > On 2017-10-04 09:10 AM, Iliana Panagopoulou wrote: >> * What led up to the situation? >> Added 'dhcp-option DNS x.x.x.x' to my openvpn's server.conf but my >> Debian client could not get the DNS. > When added server side, "push" is required for this option to be sent to > the client. > >> One, I added a second line 'push dhcp-option DNS x.x.x.x' under the >> first one and then the script parsed it correctly and all worked as >> expected. > That's the right way to configure it as far as I know.
Originally I had a single push line like so: push "dhcp-option DNS X.X.X.X" which didn't work so I started debugging the script only to find out that the value passed to resolvconf wasn't acceptable due to the lack of a newline at the "EOF" In order to fix this by only performing changes server-side, I duplicated the dhcp-option so that, from the two lines generated by update-resolv-conf at least the first one would contain a newline. so, in my server configuration I had: push "dhcp-option DNS X.X.X.X" push "dhcp-option DNS X.X.X.X" which does not seem right to me. Doing so, resolved the problem. To reproduce this, you just need an OpenVPN installation that pushes a single DNS server to its clients. > > Regards, > Simon -- Iliana Panagopoulou Systems Administrator, CENSUS S.A [email protected] | 6949.607.899 | www.census-labs.com Stadiou 33, 10559, Athens, Greece | T. +30-2110-128-355

