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

Re: finding the ip address for dns, nslookup & etc.



On Sun, Aug 08, 2010 at 12:14:35PM -0700, peasthope@shaw.ca wrote:
> I have a Debian router with dnsmasq working.
> It connects to the ISP with DHCP.  What is the 
> standard way to find the ip address or addresses, 
> which dnsmasq is using for upstream nameservers?
> Here are some things which don't help.
> 
> joule:~# cat /etc/resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 127.0.0.1
> search pi.shawcable.net
> joule:~# nslookup pi.shawcable.net
> Server:         127.0.0.1
> Address:        127.0.0.1#53
> 
> Non-authoritative answer:
> *** Can't find pi.shawcable.net: No answer
> 
> Thanks,         ... Peter E.
> 
> -- 
> Sparcstation 2, sun4c, netboots *.SUN4C; SCSI disks not yet detected.
> Personal site works;  http://members.shaw.ca/peasthope/ .


Hello:

I use dnsmasq on OpenWrt.  There the information of the DNS
servers is stored on /tmp/resolv.conf.auto.  I don't know where is the
equivalent location on a Debian installation of dnsmasq.  In the
absence of that knowledge try sending a SIGUSR1 signal to the daemon.

The manual states: 

When it receives a SIGUSR1, dnsmasq writes statistics to the system
log. [...]  For each upstream server it gives the number of queries
sent, and the number which resulted in an error. 

-- 
Jaime


Reply to: