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

* Re: [9fans] dns message
  2015-09-26  1:51 [9fans] dns message arisawa
@ 2015-09-26 15:28 ` erik quanstrom
  2015-09-26 22:49   ` arisawa
  0 siblings, 1 reply; 4+ messages in thread
From: erik quanstrom @ 2015-09-26 15:28 UTC (permalink / raw)
  To: 9fans

> 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

this is an indication of an issue.

the ntp line has a trailing ip, which may be confusing the dns client.

- erik



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

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

thank you erik.
you are very careful!
I didn’t aware that garbage.
however removing “ip” does not fix my problem.
looking source code I guess: names that are not followed by “=“ are just discarded.
I want to know whether this is only to me.

erik, thanks again!

> 2015/09/27 0:28、erik quanstrom <quanstro@quanstro.net> のメール:
> 
>> 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
> 
> this is an indication of an issue.
> 
> the ntp line has a trailing ip, which may be confusing the dns client.
> 
> - erik
> 




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

* Re: [9fans] dns message
  2015-09-26 22:49   ` arisawa
@ 2015-09-26 23:01     ` erik quanstrom
  0 siblings, 0 replies; 4+ messages in thread
From: erik quanstrom @ 2015-09-26 23:01 UTC (permalink / raw)
  To: 9fans

On Sat Sep 26 15:52:28 PDT 2015, arisawa@ar.aichi-u.ac.jp wrote:
> thank you erik.
> you are very careful!
> I didn’t aware that garbage.
> however removing “ip” does not fix my problem.
> looking source code I guess: names that are not followed by “=“ are just discarded.
> I want to know whether this is only to me.

i am not currently having this issue.  i found an instance of this issue
when i was setting up a machine a while ago,  according to /sys/log/dns.

- erik



^ 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).