Difference between revisions of "Package:Dnsmasq"

m (more details)
m (more details)
Line 27: Line 27:
{{console|body=###i## rc-update add dnsmasq default
{{console|body=###i## rc-update add dnsmasq default
###i## rc}}
###i## rc}}
=== Testing ===
==== DNS only ====
{{package|net-dns/bind-tools}} contains dns testing utilities.  To verify that dns requests are returned from the local server:  emerge bind-tools, then run:
{{console|body=###i## dig google.com | grep -i server
;; SERVER:}}

Revision as of 10:37, May 11, 2015


Source Repository:Repository:Funtoo Overlay


Summary: Small forwarding DNS server

Use Flags

Add support for Linux conntrack connection marking.
Enable support for reading ISC DHCPd lease files
Enable support for calling scripts when leases change
Enables built in TFTP server for netbooting



IP Space Migration Continues

All Funtoo user containers in the 8.28 IP space will be moving into our new IP space (172.97) over the next few days. If you have DNS set up -- be sure to watch your container and update to the new IP! container.host.funtoo.org DNS will be updated after the move.
2015-08-27 by Drobbins

Funtoo Hosting IP Move

Funtoo user containers with IPs in the 72.18.x.x range will be gradually migrating to new IP addresses this week. If you have DNS entries for your containers, please be aware that your DNS will need to be updated.
2015-08-11 by Drobbins

New ARM Stages

New ARM Stages, built with a new toolchain, are now hitting mirrors. Existing ARM users should re-install using these stages (dated Aug 3, 2015 or later,) rather than upgrade using emerge.
2015-08-06 by Drobbins



We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Dnsmasq is a dns cache, dhcp, and pxe server. This package is lightweight, and will work well for individual computers, or small lans.


# emerge net-dns/dnsmasq


/etc/dnsmasq.conf is where most of dnsmasq's configuration is done. It's file is well commented, and ready for several scenarios.

DNS only


place other upstream dns servers in /etc/resolv.dnsmasq.conf with your preferred DNS server at the top of the list. The first console command in the block will wipe out existing /etc/resolv.dnsmasq.conf settings, back them up if you have anything important in them.

# echo "nameserver" > /etc/resolv.dnsmasq.conf
# echo "resolv-file=/etc/resolv.dnsmasq.conf" >> /etc/dnsmasq.conf
# echo "listen-address=" >> /etc/dnsmasq.conf

Now your localhost / is your primary DNS to point net connection scripts to.

# echo "nameserver" > /etc/resolv.conf
# echo "nameserver" >> /etc/resolv.conf


# rc-update add dnsmasq default
# rc


DNS only

Package:Bind-tools contains dns testing utilities. To verify that dns requests are returned from the local server: emerge bind-tools, then run:

# dig google.com