|Source Repository:||Funtoo Overlay|
Summary: Small forwarding DNS server
- 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
Pre-built kernels!Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
Better Experiences: Ego and VimInfo on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
How We're Keeping You At the Center of the Funtoo UniverseRead about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
As this page deals with DNS it has the potential to break your internet access! Ensure you have stable live media that can restore your system.
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.
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 220.127.116.11" > /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 18.104.22.168" >> /etc/resolv.conf
# rc-update add dnsmasq default # rc
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