mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 11:50:17 +00:00
Updated FAQ (markdown)
parent
ab098257fc
commit
dee66cba95
1 changed files with 21 additions and 1 deletions
20
FAQ.md
20
FAQ.md
|
@ -34,3 +34,23 @@ Example:
|
|||
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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue