0

I need to force users for request to alasghar.com for connect to openvpn server, as alasghar.com is not public dns and not resolve by dns server.

Can I change clients ovpn file to force request alasghar.com from for example from 1.2.3.4 ?

I use " dhcp-option DNS <dns_server_ip_address> " in ovpn file but not request dns to my dns server because until client no connect to openvpn server this option not work.

Because I setup private dns server in internet for my openvpn clients. and alasghar.com has multiple ip address so I cant set one ip in ovpn file, in my dns server I have round robin to ip addresses bound to alasghar.com.

4
  • Do not ever use a domain that you do not own for private infrastructure, it'll be hell if anyone ever registers it with all kinds of weird failures. The answer to your problem is to just register alasghar.com and be done with it. Also read Top level domain/domain suffix for private network?. Nov 13, 2022 at 7:39
  • thanks for reply; but i didnt like to register domain in public dns. thera is any way to this? by edit only ovpn file can resolve my domain. Nov 13, 2022 at 9:24
  • Yes - but you can't force your clients. See e.g. this Q&A over at superuser.com
    – vidarlo
    Nov 13, 2022 at 9:27
  • thanks, but i dont have permission on client system or android to do this. Nov 13, 2022 at 9:59

0

You must log in to answer this question.

Browse other questions tagged .