Re: Using bind for a local caching name server, is this configuration correct?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 1 Jul 2019 22:22:09 -0700
Mike Wright <nobody@xxxxxxxxxxxxxxxxxxxx> wrote:


> I use three dns servers on one host: an authority, a caching server, 
> then dnsmasq in front of all that to return a localhost address for
> ad servers I want to block (they all hit a web server that returns
> status 200 content-length 0).
> 
> 
> Here is my very limited dnsmasq.conf:
> 
> #no local IPs
> except-interface=lo
> 
> # don't reference /etc/hosts
> no-hosts
> 
> # use eth0
> interface=eth0
> 
> # you need this when running another nameserver on the same machine
> bind-interfaces
> 
> # let dnsmasq front run
> listen-address=10.2.0.20  # all other hosts have this IP in
> resolv.conf
> 
> #upstream server (dnscache)
> server=127.0.1.53         # only dnsmasq accesses my caching server
> 
> #location of sites to be proxied
> conf-dir=/etc/dnsmasq.d/  # where my file of ad servers lives
> 
> 
> I don't use NetworkManager.  I have too many nics and bridges and NM 
> spends all its time taking my interfaces up and down and assigning
> them dhcp addresses, rendering my network more or less unusable.
> Using dnsmasq to tie the various pieces together works very well,
> reliably.

Thanks for this.  I will save it for future reference.  After I get the
caching server working.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux