RE: broken dnsservers

From: Andy Farkas <>
Date: Mon, 6 Jul 1998 18:21:47 +1000

> Um, well, after following the suggestions in the FAQ (section 14) I'm
> getting stuck dnsservers.
> I've fiddled around a bit, and have discovered that the problem is
> to NIS!?!! I get this now in the cache.log:
> Pity I can't kill ypserv and ypbind - would probably fix the problem - so
> where do I go from here??

What version of Solaris is this? Have you checked (as per the FAQ)
/usr/lib/netsvc/yp/ypstart to see if the ypserv process is being started
with the "-d" flag? If you have no SunOS 4.x clients using your NIS maps,
have you checked the yp Makefile doesn't have the "B=-b" line in it (don't
comment this out if you do have SunOS 4.x clients, though)?

Chris, you must've missed my first posting - I am running FreeBSD

I will play with 'ypserv -d' ...

The yp Makefile has 'B=-b' in it - I will try remaking with it commented
out (the Makefile suggests that this will stop ypserv from doing DNS
lookups, which is what I want, I think)

> I did notice the _SQUID_NEXT_ hack in dnsserver.c which mentions
> about yp, but when I tried it, I got an unresolved __res_getbyhostname().
> Would I have this in another library?

It's just res_gethostbyname under Solaris. I've done this to avoid using
completely for DNS lookups done by squid (alas, we can't yet remove the
YP_INTERDOMAIN flag from the hosts map because we have one solitary SunOS
4.x machine which needs it).

Again, I'm on FreeBSD ... but on a whim, I did remove the leading
underscore (see source), but that also was unresolved. This routine may
exist in one of the FreeBSD libraries, but I know not which one!
Received on Mon Jul 06 1998 - 01:28:31 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:41:04 MST