From dee66cba95bd9b0aadc6a80fba5c85f8e587c56e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Cola=C3=A7o?= Date: Sun, 24 Jun 2018 23:23:48 +0200 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index fa465d0..8a93d02 100644 --- a/FAQ.md +++ b/FAQ.md @@ -33,4 +33,24 @@ Example: ``` scp -pr /etc/openvpn/ root@192.168.101.124:/etc/ -``` \ No newline at end of file +``` + +## 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 ` ` +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 +``` +