Tagged in: dns, projects

Switch

Recently switched over from Free to Orange.

Pros

Cons

Consequences

DynDNS

Problem: changing IPv4 address. My NAS would change IP regularly, because “The fixed IP option is not compatible with fiber” Orange Conseil.

Solution: DynDNS. Make a regular curl(1) call to the specific endpoint, and TADA.

#!/bin/sh

OVH_USER="domain.ovh-user"
OVH_KEY='123456abcdef'
OVH_HOST="local.domain.ovh"

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

*/5  *    *    *    *    curl -4s --user "$OVH_USER:$OVH_KEY" "https://www.ovh.com/nic/update?system=dyndns&hostname=${OVH_HOST}"

Thanks Wojciech Langiewicz

IPv6

As usual, HurricaneElectric provides! Click click click, new tunnel up and running.

Same as above for DynDNS updates:

*/5  *    *    *    *    curl -4s --user "$TB_USER:$TB_KEY" "https://ipv4.tunnelbroker.net/nic/update?hostname=${TB_ID}"

API is documented here