finding the ip address of an upstream DNS
I have dnsmasq running on a machine which
connects to the ISP by DHCP. Can anyone tell me how to find the ip address of the upstream DNS which dnsmasq refers to? The best idea I get from the man page is to specify --log-facility=<file> and look for the address in the log. Thanks, ... Peter E. -- Google "pathology workshop" -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
finding the ip address of an upstream DNS
On Tue, 10 Nov 2009 16:09:58 -0700
peasthope@shaw.ca wrote: > I have dnsmasq running on a machine which > connects to the ISP by DHCP. > > Can anyone tell me how to find the ip address > of the upstream DNS which dnsmasq refers to? > The best idea I get from the man page is to > specify --log-facility=<file> and look for the > address in the log. In my pretty standard dnsmasq setup, upstream dns is in /var/run/dnsmasq/resolv.conf. From the manpage: ----- In order to configure dnsmasq to act as cache for the host on which it is running, put "nameserver 127.0.0.1" in /etc/resolv.conf to force local processes to send queries to dnsmasq. Then either specify the upstream servers directly to dnsmasq using --server options or put their addresses real in another file, say /etc/resolv.dnsmasq and run dnsmasq with the -r /etc/resolv.dnsmasq option. This second technique allows for dynamic update of the server addresses by PPP or DHCP. ----- So, 'ps ax | grep dnsmasq' ought to tell you where upstream is (that's how I found mine). Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
| All times are GMT. The time now is 11:13 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.