Skip to content

Instantly share code, notes, and snippets.

View adrianohirata's full-sized avatar

Adriano Hirata adrianohirata

  • Los Angeles, CA
View GitHub Profile
@adrianohirata
adrianohirata / dns-sync.sh
Last active February 7, 2020 21:46 — forked from matthiassb/dns-sync.sh
Init.d script for keeping WSL resolv.conf in-sync with Windows
#! /bin/bash
### BEGIN INIT INFO
# Provides: dns-sync
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS
# Description: Updated to keep codepage so it won't change the console font
# Original script by Matthias Brooks https://gist.github.com/matthiassb/9c8162d2564777a70e3ae3cbee7d2e95