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


Reply via email to