5 ms·
> it can also be hard to remember longer IPv6 addresses mDNS helps since you can use hostname.local without having to set up a DNS server. I was going to make
by seiferteric 5y ago
> it can also be hard to remember longer IPv6 addresses
mDNS helps since you can use hostname.local without having to set up a DNS server. I was going to make a joke blog post about using ipv4 addresses as hostnames so you can "keep using ipv4" while actually using ipv6, but I found you can't have "." in hostnames, so maybe instead use "-".
- arianvanp 5y agoProblem is .local domains don't resolve everywhere . E.g. on mobile or chrome's own DNS stack :(
- nybble41 5y agoIf you run your own DNS resolver for your local network, you can use a Discovery Proxy (RFC 8766) to allow unicast DNS resolution of multicast DNS records. I'm using mdns-discovery-proxy[0] (slightly modified to support a newer version of the zeroconf Python library) with bind9 so that xyz.local is mirrored in unicast DNS as xyz.home.arpa. The script (proxy.py in Git; I renamed it) is run with this systemd service (/etc/systemd/system/mdns-discovery-proxy.service): [Unit] Description=DNS-SD Proxy After=network.target network.service [Service] Type=simple DynamicUser=yes ExecStart=/usr/local/bin/mdns-discovery-proxy.py home.arpa 35353 Restart=always RestartSec=30 [Install] WantedBy=multi-user.target And the bind9 configuration to forward the zone is (in /etc/bind/named.conf.local): zone "home.arpa" { type forward; forward only; forwarders { 127.0.0.1 port 35353; }; }; [0] https://github.com/nybble41/mdns-discovery-proxy https://github.com/nybble41/mdns-discovery-proxy
- iknowstuff 5y agoFor me, both iOS and Chrome on Windows resolve .local.
- rhn_mk1 5y agoDoes mDNS work across VPN tunnels? The main reason I delay IPv6 is because I access hosts across the VPN by their IPs, and I don't want to publish their DNS records.
- mustardo 5y agoIf you run your own internal DNS server: https://en.m.wikipedia.org/wiki/Split-horizon_DNS https://en.m.wikipedia.org/wiki/Split-horizon_DNS
- rhn_mk1 5y agoI guess that's equivalent to setting up a hosts file... Unless the DNS resolver can be configured to treat a selected server on the VPN side as authoritative for .mynetwork.
- megous 5y agoNot currently. ff02::fb is used, which has link-local scope.
- fuzzy2 5y agoAlso, ULA. You can have both “real” (internet-routable) IPv6 addresses for all devices as well as (fixed) ULA addresses for local communication and ease of use. fd00:dead:beef::/64