add dns search domain

This commit is contained in:
Jörg Thalheim 2013-10-03 00:45:50 +02:00
parent 0cbec4bf35
commit 2f5b9cb4b8
2 changed files with 3 additions and 0 deletions

1
tinc-down Normal file → Executable file
View File

@ -1,2 +1,3 @@
#!/bin/sh
ifconfig $INTERFACE down
printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -d "$INTERFACE.inet"

2
tinc-up Normal file → Executable file
View File

@ -3,3 +3,5 @@ echo "add your ip to this file!"
exit 1
ifconfig $INTERFACE 10.42.1.10 netmask 255.255.255.255
route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE
printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -a "$INTERFACE.inet"