Differences
This shows you the differences between two versions of the page.
— | dnsmasq [2015/08/06 20:43] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== dnsmasq ====== | ||
+ | * [[DNS]] | ||
+ | * [[Avahi]] | ||
+ | * [[Multicast DNS]] | ||
+ | * [[launchctl]] | ||
+ | |||
+ | dnsmasq is a small domain name server designed to resolve host names on a LAN. | ||
+ | |||
+ | === Wildcard Domains === | ||
+ | |||
+ | You may want to assign an actual domain to a hostname, to provide wildcard name resolution. | ||
+ | |||
+ | An example would be that a host could be named '' | ||
+ | |||
+ | Add an extra domain to ''/ | ||
+ | |||
+ | < | ||
+ | address=/ | ||
+ | </ | ||
+ | |||
+ | OS X also uses mDNS to do hostname lookups, so you can add an entry for the server as well. | ||
+ | |||
+ | ==== OS X / homebrew ==== | ||
+ | |||
+ | dnsmasq can be setup to do wildcard DNS resolution natively, instead of updating an '' | ||
+ | |||
+ | First, install dnsmasq with homebrew: | ||
+ | |||
+ | < | ||
+ | brew install dnsmasq | ||
+ | </ | ||
+ | |||
+ | Install the sample config file: | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | Add this to configuration file to disable DHCP server, and resolve subdomains locally: | ||
+ | |||
+ | < | ||
+ | no-dhcp-interface= | ||
+ | address=/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | launchctl load / | ||
+ | </ | ||
+ | |||
+ | Configure OS X to resolv all '' | ||
+ | |||
+ | < | ||
+ | mkdir -p / | ||
+ | echo nameserver 127.0.0.1 > / | ||
+ | </ | ||
+ | |||
+ | ==== HOWTO ==== | ||
+ | |||
+ | == Remove a DHCP lease == | ||
+ | |||
+ | - Stop '' | ||
+ | - Edit '' | ||
+ | - Start '' |