networking:dns:dnsmasq:install_dnsmasq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:dns:dnsmasq:install_dnsmasq [2020/05/12 15:53] – [Update your devices to point to the DNS server] peter | networking:dns:dnsmasq:install_dnsmasq [2021/01/07 11:53] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Networking - DNS - dnsmasq - Install dnsmasq ====== | ||
- | |||
- | <code bash> | ||
- | sudo install dnsmasq | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Configure Dnsmasq ===== | ||
- | |||
- | Don't change **/ | ||
- | |||
- | Setup **127.0.0.1** as DNS server name in **/ | ||
- | |||
- | <file bash / | ||
- | nameserver 127.0.0.1 | ||
- | nameserver 1.1.1.1 | ||
- | nameserver 9.9.9.9 | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | This ensure that local clients always gets cached queries. | ||
- | |||
- | Replace 1.1.1.1/ | ||
- | </ | ||
- | |||
- | dnsmasq should read the list of nameservers automatically from / | ||
- | |||
- | ---- | ||
- | |||
- | ===== Restart Dnsmasq ===== | ||
- | |||
- | <code bash> | ||
- | / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Update your devices to point to the DNS server ===== | ||
- | |||
- | Point your clients to the address of the server running Dnsmasq. | ||
- | |||
- | It is easy to use Dnsmasq rather than setting up caching BIND server. | ||
- | |||
- | But hold on it has some cool usage too. | ||
- | |||
- | You can add domains which you want to force to specific IP address. | ||
- | |||
- | For example, doubleclick.net displays ugly adds on many sites, just send this server it to our 127.0.0.1 (i.e. your local server ). | ||
- | |||
- | Just open a file / | ||
- | |||
- | <file bash / | ||
- | address=/ | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Restart Dnsmasq ===== | ||
- | |||
- | Restart Dnsmasq and make sure you run local webserver at 127.0.0.1 with some default page. | ||
- | |||
- | Read the Dnsmasq man page and docs for more information. | ||
- | |||
networking/dns/dnsmasq/install_dnsmasq.1589298820.txt.gz · Last modified: 2020/07/15 09:30 (external edit)