Talk:Dnsmasq

From ArchWiki
Revision as of 16:39, 12 November 2009 by Tresende (Talk | contribs) (Created page with '== Testing without "http://" == In the test section it is recommended that the reader tries dig http://archlinux.org | grep "Query time" However, on both my systems running dnsm…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Testing without "http://"

In the test section it is recommended that the reader tries

dig http://archlinux.org | grep "Query time"

However, on both my systems running dnsmasq-2.50, querying anything prefixed with a "http://" causes dnsmasq to automatically forward the query and not to cache the reply:

% dig "http://archlinux.org" | grep "Query time"; !#
;; Query time: 493 msec
;; Query time: 485 msec

The daemon logs

dnsmasq: forwarded query to 208.67.220.220
dnsmasq: forwarded query to 208.67.220.220

This might lead the reader to think dnsmasq is not working, when it actually works fine with:

% dig "archlinux.org" | grep "Query time"; !#
;; Query time: 508 msec
;; Query time: 0 msec

The daemon logs

dnsmasq: query[A] archlinux.org from 127.0.0.1
dnsmasq: forwarded archlinux.org to 208.67.222.222
dnsmasq: forwarded archlinux.org to 208.67.220.220
dnsmasq: reply archlinux.org is 66.211.214.131
dnsmasq: query[A] archlinux.org from 127.0.0.1
dnsmasq: cached archlinux.org is 66.211.214.131

So, I'm removing the "http://" prefix. -- Tresende 11:39, 12 November 2009 (EST)