/etc/hosts and dnsmasq

Introduction

/etc/hosts

/etc/hosts
127.0.0.1       localhost
#Can route an actual website

0.0.0.0       example.org

dnsmasq

The following in the following file will allow traffic to google.com and block everything else.

/etc/dnsmasq.conf
address=/google.com/
address=/#/0.0.0.0