This will allow your computer to resolve mDNS hostnames which addresses in the form of something.local.
In order to do it,
-edit `/etc/nsswitch.conf` and append `mdns_minimal [NOTFOUND=return]` to your `hosts:` line before your `dns` entry,
+edit `/etc/nsswitch.conf` and append "`mdns_minimal [NOTFOUND=return]`" to your `hosts:` line before your `dns` entry,
for example my configuration is:
hosts: files myhostname mdns_minimal [NOTFOUND=return] dns
### Automatic ip assignment and network setup:
Follow the "how to configure" guide from the [[manual|docs]] to create the key pair and folders,
-then edit `tinc.conf` and insert `Mode = switch`,
+then edit `tinc.conf` and insert "`Mode = switch`",
this will allow to make all nodes to listen to the same subnet mask simplifying the configuration
(although it'll increase traffic since all nodes will get the data).
By default the subnet mask is 169.254.0.0/16.
We'll change how `tinc-up` brings up the VPN interface; instead of using `ifconfig` to bring up the interface,
-we'll use `avahi-autoipd daemon`.
+we'll use `avahi-autoipd`.
This yields many advantages:
-* autoipd daemon automatically assignes an ip address based off available pool
-* it'll publish the hostname in the mdns resolution network and will also act as controller for the avahi daemon allowing to browse or publish avahi services
+* The Avahi auto-IP daemon automatically assignes an IP address based off available pool.
+* It'll publish the hostname in the mDNS resolution network and will also act as controller for the Avahi daemon allowing to browse or publish Avahi services.
So in the `tinc-up` script you'll have a line like: `avahi-autoipd -D $INTERFACE`.
That's it! your VPN will have auto assigned IP addresses, and automatically resolved DNS entries once it's up.
### Useful bits:
-You can insert static hostname resolution for VPN nodes using `/etc/avahi/hosts` much like `/etc/hosts`.
-You can manually ask for preferred IP when calling `avahi-autoipd` by appending `-S` <i>wantedip</i>.
+You can insert static hostname resolution for VPN nodes using `/etc/avahi/hosts`, much like `/etc/hosts`.
+You can manually ask for a preferred IP when calling `avahi-autoipd` by appending "`-S` <i>wantedip</i>".
### Example configuration: