add dns example configuration

This commit is contained in:
Jörg Thalheim 2013-11-03 09:31:08 +01:00
parent 90953b1b29
commit bf5ca5333d
3 changed files with 20 additions and 0 deletions

View File

@ -74,3 +74,16 @@ Programm.
Wenn alles funktioniert kannst du die Adresse 10.42.16.1 erreichbar sein
ping 10.42.16.1
BONUS: Auflösen von Adressen via dnsmasq:
-----------------------------------------
$ cp /etc/tinc/closedvpn/resolv.conf /etc/resolv.conf
$ cp /etc/tinc/closedvpn/dnsmasq.conf /etc/dnsmasq.conf
$ apt-get install dnsmasq
oder
$ pacman -S dnsmasq

5
dnsmasq.conf Normal file
View File

@ -0,0 +1,5 @@
server=/vpn/10.42.16.1
server=8.8.8.8
listen-address=127.0.0.1
no-resolv
cache-size=1000

2
resolv.conf Normal file
View File

@ -0,0 +1,2 @@
nameserver 127.0.0.1
search vpn