From mboxrd@z Thu Jan 1 00:00:00 1970 From: arisawa Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: Date: Sat, 26 Sep 2015 10:51:34 +0900 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: [9fans] dns message Topicbox-Message-UUID: 6c0d7200-ead9-11e9-9d60-3106f5b1d025 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