9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dns message
@ 2015-09-26  1:51 arisawa
  2015-09-26 15:28 ` erik quanstrom
  0 siblings, 1 reply; 4+ messages in thread
From: arisawa @ 2015-09-26  1:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

running dns with -rs options
I have a lot of messages in /sys/log/dns

term% tail dns
hebe Sep 26 07:17:20 rejecting my ip 192.168.0.6 as local dns server
hebe Sep 26 07:19:34 rejecting my ip 192.168.0.6 as local dns server
hebe Sep 26 07:19:37 rejecting my ip 192.168.0.6 as local dns server

these messages come from:

---- dblookup.c ----

addlocaldnsserver(DN *dp, int class, char *ipaddr, int i)
{
	...
	/* reject our own ip addresses so we don't query ourselves via udp */
	if (myaddr(ipaddr))
		return;


myaddr(char *addr)
{
	char *line, *sp;
	char buf[64];
	Biobuf *bp;

	if(ipcmp(ipaddr, IPnoaddr) == 0)
		if(myipaddr(ipaddr, mntpt) < 0)
			return -1;

	snprint(buf, sizeof buf, "%I", ipaddr);
	if (strcmp(addr, buf) == 0) {
		dnslog("rejecting my ip %s as local dns server", addr);
		return 1;
	}


---- /lib/ndb/local ----
ipnet=local ip=192.168.0.0 ipmask=255.255.255.0
	ipgw=192.168.0.1
	smtp=ar
	ntp=ntp.jst.mfeed.ad.jp ip
	auth=hebe
	fs=hebe
	# the dns values are advertised by DHCP server
	# we assume that dhcpd is running on the same ip. look /cfg/common/cpurc
	dns=192.168.0.6

yes my dns is running on 192.168.0.6

any wrong setting in /lib/ndb/local?
if not, I think these warning messages are annoying.

Kenji Arisawa




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-26 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-26  1:51 [9fans] dns message arisawa
2015-09-26 15:28 ` erik quanstrom
2015-09-26 22:49   ` arisawa
2015-09-26 23:01     ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).