Skip to content

Instantly share code, notes, and snippets.

@xavierlacot
Created August 2, 2017 15:24
Show Gist options
  • Save xavierlacot/939e8fa14c9bb0ca4e3fe98e5b1f9a3d to your computer and use it in GitHub Desktop.
Save xavierlacot/939e8fa14c9bb0ca4e3fe98e5b1f9a3d to your computer and use it in GitHub Desktop.
USG static dns entries
$ ssh [email protected]
$ sudo vi /etc/dnsmasq.d/dnsmasq.static.conf

Put there some hostnames <-> ip mappings:

address=/some.domain/192.168.0.123
address=/some.other.domain/167.112.237.24

Save it the reload dnsmasq:

$ sudo /etc/init.d/dnsmasq force-reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment