How to define DNS server in openvpn?











up vote
12
down vote

favorite
4












I setup an openvpn server with static key (certificate mode is not usable due to DPI at the national gateway), but I cannot successfully change the DNS automatically after the connection. I searched over the Internet and SE, and every one suggests the use dhcp-option.



I tried to add this line to client.ovpn



dhcp-option DNS 8.8.8.8


There is no effect. I tried to add this line in server conf



push "dhcp-option DNS 8.8.8.8"


Neither has any effect.



In fact, according to the manual,




--dhcp-option type [parm]



Set extended TAP-Win32 TCP/IP properties, must be used with --ip-win32
dynamic or --ip-win32 adaptive.




But my client is a Mac machine, server Linux. Any solutions to the problem?










share|improve this question


















  • 1




    You should mention what client you're using on the OSX machine.
    – FloHimself
    May 7 '15 at 8:06






  • 1




    @FloHimself: The standard command line utility openvpn.
    – Siyuan Ren
    May 7 '15 at 9:11















up vote
12
down vote

favorite
4












I setup an openvpn server with static key (certificate mode is not usable due to DPI at the national gateway), but I cannot successfully change the DNS automatically after the connection. I searched over the Internet and SE, and every one suggests the use dhcp-option.



I tried to add this line to client.ovpn



dhcp-option DNS 8.8.8.8


There is no effect. I tried to add this line in server conf



push "dhcp-option DNS 8.8.8.8"


Neither has any effect.



In fact, according to the manual,




--dhcp-option type [parm]



Set extended TAP-Win32 TCP/IP properties, must be used with --ip-win32
dynamic or --ip-win32 adaptive.




But my client is a Mac machine, server Linux. Any solutions to the problem?










share|improve this question


















  • 1




    You should mention what client you're using on the OSX machine.
    – FloHimself
    May 7 '15 at 8:06






  • 1




    @FloHimself: The standard command line utility openvpn.
    – Siyuan Ren
    May 7 '15 at 9:11













up vote
12
down vote

favorite
4









up vote
12
down vote

favorite
4






4





I setup an openvpn server with static key (certificate mode is not usable due to DPI at the national gateway), but I cannot successfully change the DNS automatically after the connection. I searched over the Internet and SE, and every one suggests the use dhcp-option.



I tried to add this line to client.ovpn



dhcp-option DNS 8.8.8.8


There is no effect. I tried to add this line in server conf



push "dhcp-option DNS 8.8.8.8"


Neither has any effect.



In fact, according to the manual,




--dhcp-option type [parm]



Set extended TAP-Win32 TCP/IP properties, must be used with --ip-win32
dynamic or --ip-win32 adaptive.




But my client is a Mac machine, server Linux. Any solutions to the problem?










share|improve this question













I setup an openvpn server with static key (certificate mode is not usable due to DPI at the national gateway), but I cannot successfully change the DNS automatically after the connection. I searched over the Internet and SE, and every one suggests the use dhcp-option.



I tried to add this line to client.ovpn



dhcp-option DNS 8.8.8.8


There is no effect. I tried to add this line in server conf



push "dhcp-option DNS 8.8.8.8"


Neither has any effect.



In fact, according to the manual,




--dhcp-option type [parm]



Set extended TAP-Win32 TCP/IP properties, must be used with --ip-win32
dynamic or --ip-win32 adaptive.




But my client is a Mac machine, server Linux. Any solutions to the problem?







dns openvpn






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 7 '15 at 7:12









Siyuan Ren

2371411




2371411








  • 1




    You should mention what client you're using on the OSX machine.
    – FloHimself
    May 7 '15 at 8:06






  • 1




    @FloHimself: The standard command line utility openvpn.
    – Siyuan Ren
    May 7 '15 at 9:11














  • 1




    You should mention what client you're using on the OSX machine.
    – FloHimself
    May 7 '15 at 8:06






  • 1




    @FloHimself: The standard command line utility openvpn.
    – Siyuan Ren
    May 7 '15 at 9:11








1




1




You should mention what client you're using on the OSX machine.
– FloHimself
May 7 '15 at 8:06




You should mention what client you're using on the OSX machine.
– FloHimself
May 7 '15 at 8:06




1




1




@FloHimself: The standard command line utility openvpn.
– Siyuan Ren
May 7 '15 at 9:11




@FloHimself: The standard command line utility openvpn.
– Siyuan Ren
May 7 '15 at 9:11










4 Answers
4






active

oldest

votes

















up vote
6
down vote













On a Linux system, you need to run an external script.



Here is the documentation:
https://wiki.archlinux.org/index.php/OpenVPN#DNS



Scripts are found on here or newer Linux version here and you can call them by adding this on the openvpn client configuration:



script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf





share|improve this answer






























    up vote
    4
    down vote













    I'm no expert, but from reading the man page below your quote:




    --dhcp-option type [parm]



    ...



    Note that if --dhcp-option is pushed via --push to a non-windows
    client
    , the option will be saved in the client's environment before
    the up script is called, under the
    name "foreign_option_{n}".




    and under foreign_option_{n}:




    foreign_option_{n}



    An option pushed via --push to a client which does
    not natively support it, such as --dhcp-option on a non-Windows
    system
    , will be recorded to this environmental variable sequence prior
    to --up script execution.




    So the command line openvpn client doesn't automatically modify the DNS setup on your OSX machine after establishing the connection. But since the DNS options are saved to the client's environment, you can specify a script to append the pushed servers to the system's current DNS config with the --up option:




    --up cmd



    Run command cmd after successful TUN/TAP device open (pre --user UID change).



    cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be
    single- or double-quoted and/or escaped using
    a backslash, and should be separated by one or more spaces.




    E.g. Tunnelblick also does this by utilizing this script.



    Another solution might be a script that was posted to the openvpn mailing list at DNS for OS X clients - the Definitive Guide.






    share|improve this answer





















    • What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
      – Siyuan Ren
      May 7 '15 at 10:46










    • @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
      – FloHimself
      May 7 '15 at 10:56












    • The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
      – Siyuan Ren
      May 7 '15 at 11:07










    • @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
      – FloHimself
      May 7 '15 at 11:15










    • This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
      – Siyuan Ren
      May 7 '15 at 23:48


















    up vote
    4
    down vote













    I had the same problem with both Linux OS (server and client), and I solved itm installing dnsmasq on server that was missing



    so my steps:



    apt-get install dnsmasq



    in server.conf



    push "redirect-gateway def1"
    push "dhcp-option DNS 8.8.8.8"
    push "dhcp-option DNS 8.8.4.4"



    And I could connect and browse domains through the server IP , connecting with NetWorkManager with DNS sets to automatic






    share|improve this answer




























      up vote
      -1
      down vote













      Add this command to your client side conf file..



      # put actual dns name here
      dhcp-option DNS 10.11.12.13


      It will definitely work..






      share|improve this answer























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "106"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f201946%2fhow-to-define-dns-server-in-openvpn%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        6
        down vote













        On a Linux system, you need to run an external script.



        Here is the documentation:
        https://wiki.archlinux.org/index.php/OpenVPN#DNS



        Scripts are found on here or newer Linux version here and you can call them by adding this on the openvpn client configuration:



        script-security 2
        up /etc/openvpn/update-resolv-conf
        down /etc/openvpn/update-resolv-conf





        share|improve this answer



























          up vote
          6
          down vote













          On a Linux system, you need to run an external script.



          Here is the documentation:
          https://wiki.archlinux.org/index.php/OpenVPN#DNS



          Scripts are found on here or newer Linux version here and you can call them by adding this on the openvpn client configuration:



          script-security 2
          up /etc/openvpn/update-resolv-conf
          down /etc/openvpn/update-resolv-conf





          share|improve this answer

























            up vote
            6
            down vote










            up vote
            6
            down vote









            On a Linux system, you need to run an external script.



            Here is the documentation:
            https://wiki.archlinux.org/index.php/OpenVPN#DNS



            Scripts are found on here or newer Linux version here and you can call them by adding this on the openvpn client configuration:



            script-security 2
            up /etc/openvpn/update-resolv-conf
            down /etc/openvpn/update-resolv-conf





            share|improve this answer














            On a Linux system, you need to run an external script.



            Here is the documentation:
            https://wiki.archlinux.org/index.php/OpenVPN#DNS



            Scripts are found on here or newer Linux version here and you can call them by adding this on the openvpn client configuration:



            script-security 2
            up /etc/openvpn/update-resolv-conf
            down /etc/openvpn/update-resolv-conf






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 11 at 15:53









            Jeff Schaller

            37.4k1052121




            37.4k1052121










            answered Sep 1 '17 at 2:57









            Damien

            16113




            16113
























                up vote
                4
                down vote













                I'm no expert, but from reading the man page below your quote:




                --dhcp-option type [parm]



                ...



                Note that if --dhcp-option is pushed via --push to a non-windows
                client
                , the option will be saved in the client's environment before
                the up script is called, under the
                name "foreign_option_{n}".




                and under foreign_option_{n}:




                foreign_option_{n}



                An option pushed via --push to a client which does
                not natively support it, such as --dhcp-option on a non-Windows
                system
                , will be recorded to this environmental variable sequence prior
                to --up script execution.




                So the command line openvpn client doesn't automatically modify the DNS setup on your OSX machine after establishing the connection. But since the DNS options are saved to the client's environment, you can specify a script to append the pushed servers to the system's current DNS config with the --up option:




                --up cmd



                Run command cmd after successful TUN/TAP device open (pre --user UID change).



                cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be
                single- or double-quoted and/or escaped using
                a backslash, and should be separated by one or more spaces.




                E.g. Tunnelblick also does this by utilizing this script.



                Another solution might be a script that was posted to the openvpn mailing list at DNS for OS X clients - the Definitive Guide.






                share|improve this answer





















                • What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                  – Siyuan Ren
                  May 7 '15 at 10:46










                • @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                  – FloHimself
                  May 7 '15 at 10:56












                • The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                  – Siyuan Ren
                  May 7 '15 at 11:07










                • @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                  – FloHimself
                  May 7 '15 at 11:15










                • This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                  – Siyuan Ren
                  May 7 '15 at 23:48















                up vote
                4
                down vote













                I'm no expert, but from reading the man page below your quote:




                --dhcp-option type [parm]



                ...



                Note that if --dhcp-option is pushed via --push to a non-windows
                client
                , the option will be saved in the client's environment before
                the up script is called, under the
                name "foreign_option_{n}".




                and under foreign_option_{n}:




                foreign_option_{n}



                An option pushed via --push to a client which does
                not natively support it, such as --dhcp-option on a non-Windows
                system
                , will be recorded to this environmental variable sequence prior
                to --up script execution.




                So the command line openvpn client doesn't automatically modify the DNS setup on your OSX machine after establishing the connection. But since the DNS options are saved to the client's environment, you can specify a script to append the pushed servers to the system's current DNS config with the --up option:




                --up cmd



                Run command cmd after successful TUN/TAP device open (pre --user UID change).



                cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be
                single- or double-quoted and/or escaped using
                a backslash, and should be separated by one or more spaces.




                E.g. Tunnelblick also does this by utilizing this script.



                Another solution might be a script that was posted to the openvpn mailing list at DNS for OS X clients - the Definitive Guide.






                share|improve this answer





















                • What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                  – Siyuan Ren
                  May 7 '15 at 10:46










                • @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                  – FloHimself
                  May 7 '15 at 10:56












                • The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                  – Siyuan Ren
                  May 7 '15 at 11:07










                • @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                  – FloHimself
                  May 7 '15 at 11:15










                • This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                  – Siyuan Ren
                  May 7 '15 at 23:48













                up vote
                4
                down vote










                up vote
                4
                down vote









                I'm no expert, but from reading the man page below your quote:




                --dhcp-option type [parm]



                ...



                Note that if --dhcp-option is pushed via --push to a non-windows
                client
                , the option will be saved in the client's environment before
                the up script is called, under the
                name "foreign_option_{n}".




                and under foreign_option_{n}:




                foreign_option_{n}



                An option pushed via --push to a client which does
                not natively support it, such as --dhcp-option on a non-Windows
                system
                , will be recorded to this environmental variable sequence prior
                to --up script execution.




                So the command line openvpn client doesn't automatically modify the DNS setup on your OSX machine after establishing the connection. But since the DNS options are saved to the client's environment, you can specify a script to append the pushed servers to the system's current DNS config with the --up option:




                --up cmd



                Run command cmd after successful TUN/TAP device open (pre --user UID change).



                cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be
                single- or double-quoted and/or escaped using
                a backslash, and should be separated by one or more spaces.




                E.g. Tunnelblick also does this by utilizing this script.



                Another solution might be a script that was posted to the openvpn mailing list at DNS for OS X clients - the Definitive Guide.






                share|improve this answer












                I'm no expert, but from reading the man page below your quote:




                --dhcp-option type [parm]



                ...



                Note that if --dhcp-option is pushed via --push to a non-windows
                client
                , the option will be saved in the client's environment before
                the up script is called, under the
                name "foreign_option_{n}".




                and under foreign_option_{n}:




                foreign_option_{n}



                An option pushed via --push to a client which does
                not natively support it, such as --dhcp-option on a non-Windows
                system
                , will be recorded to this environmental variable sequence prior
                to --up script execution.




                So the command line openvpn client doesn't automatically modify the DNS setup on your OSX machine after establishing the connection. But since the DNS options are saved to the client's environment, you can specify a script to append the pushed servers to the system's current DNS config with the --up option:




                --up cmd



                Run command cmd after successful TUN/TAP device open (pre --user UID change).



                cmd consists of a path to script (or executable program), optionally followed by arguments. The path and arguments may be
                single- or double-quoted and/or escaped using
                a backslash, and should be separated by one or more spaces.




                E.g. Tunnelblick also does this by utilizing this script.



                Another solution might be a script that was posted to the openvpn mailing list at DNS for OS X clients - the Definitive Guide.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 7 '15 at 9:30









                FloHimself

                6,21421318




                6,21421318












                • What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                  – Siyuan Ren
                  May 7 '15 at 10:46










                • @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                  – FloHimself
                  May 7 '15 at 10:56












                • The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                  – Siyuan Ren
                  May 7 '15 at 11:07










                • @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                  – FloHimself
                  May 7 '15 at 11:15










                • This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                  – Siyuan Ren
                  May 7 '15 at 23:48


















                • What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                  – Siyuan Ren
                  May 7 '15 at 10:46










                • @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                  – FloHimself
                  May 7 '15 at 10:56












                • The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                  – Siyuan Ren
                  May 7 '15 at 11:07










                • @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                  – FloHimself
                  May 7 '15 at 11:15










                • This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                  – Siyuan Ren
                  May 7 '15 at 23:48
















                What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                – Siyuan Ren
                May 7 '15 at 10:46




                What about iPhone? Without jailbreaking, I imagine there is no bash or any command to change the DNS automatically.
                – Siyuan Ren
                May 7 '15 at 10:46












                @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                – FloHimself
                May 7 '15 at 10:56






                @SiyuanRen Without jailbraking you probably don't use the command line openvpn client on an iPhone...
                – FloHimself
                May 7 '15 at 10:56














                The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                – Siyuan Ren
                May 7 '15 at 11:07




                The official openvpn app simply loads a text configuration file and runs it. There is no more functionality.
                – Siyuan Ren
                May 7 '15 at 11:07












                @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                – FloHimself
                May 7 '15 at 11:15




                @SiyuanRen Well, the official openvpn app is not the command line application that is discussed here.
                – FloHimself
                May 7 '15 at 11:15












                This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                – Siyuan Ren
                May 7 '15 at 23:48




                This feels like an hack. When I connect with PPTP or L2TP, there is a dedicated interface available in the Network preferences, with their only IP and DNS. OpenVPN requires me to change the DNS settings of other interfaces?
                – Siyuan Ren
                May 7 '15 at 23:48










                up vote
                4
                down vote













                I had the same problem with both Linux OS (server and client), and I solved itm installing dnsmasq on server that was missing



                so my steps:



                apt-get install dnsmasq



                in server.conf



                push "redirect-gateway def1"
                push "dhcp-option DNS 8.8.8.8"
                push "dhcp-option DNS 8.8.4.4"



                And I could connect and browse domains through the server IP , connecting with NetWorkManager with DNS sets to automatic






                share|improve this answer

























                  up vote
                  4
                  down vote













                  I had the same problem with both Linux OS (server and client), and I solved itm installing dnsmasq on server that was missing



                  so my steps:



                  apt-get install dnsmasq



                  in server.conf



                  push "redirect-gateway def1"
                  push "dhcp-option DNS 8.8.8.8"
                  push "dhcp-option DNS 8.8.4.4"



                  And I could connect and browse domains through the server IP , connecting with NetWorkManager with DNS sets to automatic






                  share|improve this answer























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    I had the same problem with both Linux OS (server and client), and I solved itm installing dnsmasq on server that was missing



                    so my steps:



                    apt-get install dnsmasq



                    in server.conf



                    push "redirect-gateway def1"
                    push "dhcp-option DNS 8.8.8.8"
                    push "dhcp-option DNS 8.8.4.4"



                    And I could connect and browse domains through the server IP , connecting with NetWorkManager with DNS sets to automatic






                    share|improve this answer












                    I had the same problem with both Linux OS (server and client), and I solved itm installing dnsmasq on server that was missing



                    so my steps:



                    apt-get install dnsmasq



                    in server.conf



                    push "redirect-gateway def1"
                    push "dhcp-option DNS 8.8.8.8"
                    push "dhcp-option DNS 8.8.4.4"



                    And I could connect and browse domains through the server IP , connecting with NetWorkManager with DNS sets to automatic







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered May 23 '16 at 16:42









                    Maddish

                    512




                    512






















                        up vote
                        -1
                        down vote













                        Add this command to your client side conf file..



                        # put actual dns name here
                        dhcp-option DNS 10.11.12.13


                        It will definitely work..






                        share|improve this answer



























                          up vote
                          -1
                          down vote













                          Add this command to your client side conf file..



                          # put actual dns name here
                          dhcp-option DNS 10.11.12.13


                          It will definitely work..






                          share|improve this answer

























                            up vote
                            -1
                            down vote










                            up vote
                            -1
                            down vote









                            Add this command to your client side conf file..



                            # put actual dns name here
                            dhcp-option DNS 10.11.12.13


                            It will definitely work..






                            share|improve this answer














                            Add this command to your client side conf file..



                            # put actual dns name here
                            dhcp-option DNS 10.11.12.13


                            It will definitely work..







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Mar 29 '16 at 21:29









                            roaima

                            42.4k551116




                            42.4k551116










                            answered Mar 27 '16 at 20:56









                            Vinood NK Maheshwari

                            309110




                            309110






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f201946%2fhow-to-define-dns-server-in-openvpn%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Accessing regular linux commands in Huawei's Dopra Linux

                                Can't connect RFCOMM socket: Host is down

                                Kernel panic - not syncing: Fatal Exception in Interrupt