Updated FAQ (markdown)

Carlos Colaço 2018-06-24 23:23:48 +02:00
parent ab098257fc
commit dee66cba95

20
FAQ.md

@ -34,3 +34,23 @@ Example:
scp -pr /etc/openvpn/ root@192.168.101.124:/etc/ scp -pr /etc/openvpn/ root@192.168.101.124:/etc/
``` ```
## How to resolve local hostnames?
to resolve local hostnames all you have to do is to use your router as DNS Server instead of using other public DNS providers.
If you have already a working installation of OpenVPN, all you need to do is to edit `/etc/openvpn/server.conf` and change the following line:
```
#Assuming your router IP address is 192.168.1.1
push "dhcp-option DNS 192.168.1.1"
```
Alternatively you can change `/etc/hosts` file and add `<IPAddress> <hostname>`
Example:
```
192.168.1.1 JohnDoeRouter
192.168.1.2 JohnDoePC
192.168.1.3 JaneDoePC
192.168.1.4 CatPC
192.168.1.5 DogPC
```