OpenVPN push dhcp option

I would like to ask some questions about dhcp-optionin OpenVPN.

I have three options:

push "dhcp-option DNS 192.168.248.1"
push "dhcp-option DOMAIN myfirst.domain"
push "dhcp-option DOMAIN mysecond.domain"

I understand that if I ever need to look for the server name that ever was *.myfirst.domainor *.mysecond.domain, then the DNS server that will be used is the one I clicked 192.168.248.1, otherwise it will use the default DNS server that was installed on the computer.

Am I right or not?

thank you for your responses

+4
source share
2 answers

The right way to do this for multiple domains.

push "dhcp-option DOMAIN-SEARCH myfirst.domain"
push "dhcp-option DOMAIN-SEARCH mysecond.domain"

You must specify the parameter twice so that both are raised.

+3
source

"",

:

push "dhcp-option SEARCH myfirst.domain mysecond.domain"
+1

Source: https://habr.com/ru/post/1530959/


All Articles