Dnsmasq

Revision as of 10:18, May 11, 2015 by Threesixes (Talk | contribs) (more details)

net-dns/dnsmasq


Source Repository:Repository:Funtoo Overlay

http://www.thekelleys.org.uk/dnsmasq/

Summary: Small forwarding DNS server

Use Flags

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

News

Drobbins

Perl Updates

Gentoo has bumped perl from 5.20 to 5.22. Be sure to run perl-cleaner --all after the upgrade.
2015-07-25 by Drobbins
Drobbins

ARM Rebuild

ARM systems will use new stage3's that are not compatible with earlier versions.
2015-06-27 by Drobbins
Drobbins

ABI X86 64 and 32

Funtoo Linux has new 32-bit compatibility libraries inherited from Gentoo. Learn about them here.
2015-06-18 by Drobbins
More...

Dnsmasq

Tip

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.

Installation

# emerge net-dns/dnsmasq


Configuration

/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

Important

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 8.8.8.8" > /etc/resolv.dnsmasq.conf
# echo "resolv-file=/etc/resolv.dnsmasq.conf" >> /etc/dnsmasq.conf
# echo "listen-address=127.0.0.1" >> /etc/dnsmasq.conf


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

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


Runtime

# rc-update add dnsmasq default
# rc