zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Bart Schaefer" <schaefer@candle.brasslantern.com>,
	"ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: test for network libraries (for test only)/problems with name resolution
Date: Wed, 23 Aug 2000 10:55:59 +0400	[thread overview]
Message-ID: <000001c00ccf$3175a110$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <1000822170232.ZM7764@candle.brasslantern.com>


>
> }  - I'm trapped on my own system. The problem is, now, when
> } gethostbyname2 is correctly found, name resolution goes via resolver
> } library. But this is using /etc/hosts only as fallback "if nameserver
> } is not running" (at least in original bind implemetation as found
> } here). Due to our infrastructure, it is unacceptable to me.
>
> I'm not sure I understand ... do you mean that your nameserver *is*
> running, but is not able to properly resolve all the names you need?
>

The gethostbyname() from -lnsl on SVR4-derived systems supports service switch
via /etc/netconfig file; here you can define the order of name resolution much
like in Solaris /etc/nsswitch.conf. I normally define it to use both DNS and
/etc/hosts.

The gethostbyname2() from -lresolv does not use service switch and behaves as
described above. It means, that if host is not defined in DNS but in
/etc/hosts, it is not found (assuming, that DNS is properly setup and
functional).

In our case, not everything is defined in DNS, hence the problem.

Yes, it is broken system, but there is no (real) chance to ever get it fixed,
now, that development is about to officially stop. So, I have to devise some
workaround.

-andrej


  reply	other threads:[~2000-08-23  6:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000821092904.A32199@lorien.emufarm.org>
2000-08-22 13:15 ` Andrej Borsenkow
2000-08-22 13:43   ` Roland Jesse
2000-08-22 17:02   ` Bart Schaefer
2000-08-23  6:55     ` Andrej Borsenkow [this message]
2000-09-04 13:39     ` Andrej Borsenkow
2000-09-06 15:52       ` Removed " Andrej Borsenkow
2000-09-07 22:16       ` Will Day
2000-09-08  4:14         ` Bart Schaefer
2000-09-08  6:05           ` Andrej Borsenkow
2000-09-08  6:39             ` Will Day
2000-09-08  7:28             ` OT: " Andrej Borsenkow
2000-09-08 20:31             ` Zefram

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='000001c00ccf$3175a110$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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