Skip to content

Instantly share code, notes, and snippets.

@plembo
Last active August 27, 2020 19:19
Show Gist options
  • Select an option

  • Save plembo/86d52ef73ad101844d1baaece9f144c5 to your computer and use it in GitHub Desktop.

Select an option

Save plembo/86d52ef73ad101844d1baaece9f144c5 to your computer and use it in GitHub Desktop.
Search Domain with Google Fiber

Search Domain with Google Fiber

Google Fiber's Network Box DHCP makes no provision for passing a search domain to clients. This alone is reason to ditch the Network Box in favor of another device.

Most Linux DHCP clients will be using Network Manager, which provides a way to supply a custom search domain that will be added to /etc/resolv.conf. Note that you must mask systemd-networkd for this to work.

  1. Go to /etc/NetworkManager/system-connections
  2. Edit the 'Wired connection 1' profile under [ipv4] to specify your preferred search domain:
[ipv4]
dns-search=example.com
  1. Do the same for any wireless connection profiles (named for the SSID of the connection, like "fbi-surveillance-van").
  2. Restart Network Manager and verify search example.com appears in your /etc/resolv.conf file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment