Re: dnsmasq for caching

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

 



kwhiskerz wrote:
This is what I have done:

I have made a file, resolv.servers with the nameservers I want to use. I have edited resolv.conf so that it looks at 127.0.0.1. I have put PEERDNS=no into ifcfg-eth0 so that resolv.conf does not get overwritten at boot. I have edited dnsmasq.conf to use only resolv.servers in strict order.

I am able to connect to the internet and I can verify that I am using my chosen nameservers, so this setup appears to be working.

I have set up 2 computers and have exactly the same files in both.

On one computer, when I type dig someplace.com the search takes ~300ms and subsequently ~0ms and no lights flash on my adsl router. Caching appears to work.

On the other computer, when I type dig someplace.com the search takes ~300ms and subsequently ~35ms and lights flash on my adsl router. I suspect caching is not working.

What is happening here? How does one properly set up dnsmasq to do dns caching? Why is the same setup acting differently on the 2 machines? Network Manager is not enabled on either machine.

Any ideas?

Seems to me caching _is_ working, though why the difference I cannot say.

Use tcpdump* to listen to the relevant interface, port 53 on each and see what's the difference.

* Or wireshark. Wireshark has a nice GUI.

--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

Please do not reply off-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux