From: arisawa <arisawa@ar.aichi-u.ac.jp>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] dns message
Date: Sat, 26 Sep 2015 10:51:34 +0900 [thread overview]
Message-ID: <C4C7C155-9D2F-412E-9427-E20F0B2D7C12@ar.aichi-u.ac.jp> (raw)
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
next reply other threads:[~2015-09-26 1:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 1:51 arisawa [this message]
2015-09-26 15:28 ` erik quanstrom
2015-09-26 22:49 ` arisawa
2015-09-26 23:01 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C4C7C155-9D2F-412E-9427-E20F0B2D7C12@ar.aichi-u.ac.jp \
--to=arisawa@ar.aichi-u.ac.jp \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).