Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Subprocess puzzle and two questions

Received: by 10.152.104.36 with SMTP id gb4mr496782lab.0.1353487456457;
        Wed, 21 Nov 2012 00:44:16 -0800 (PST)
MIME-Version: 1.0
Path: q13ni3845wii.0!nntp.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!backlog1.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news-xxxfer.readnews.com!news-out.readnews.com!transit3.readnews.com!panix!roy
From: Roy Smith <r...@panix.com>
Newsgroups: comp.lang.python
Subject: Re: Subprocess puzzle and two questions
Date: Thu, 15 Nov 2012 20:07:38 -0500
Organization: PANIX Public Access Internet and UNIX, NYC
Lines: 17
Message-ID: <roy-17407F.20073815112012@news.panix.com>
References: <mailman.3664.1352867713.27098.python-list@python.org> <mailman.3666.1352873042.27098.python-list@python.org> <roy-F5C640.09225714112012@news.panix.com> <mailman.3684.1352904008.27098.python-list@python.org> <k80gd6$t0q$1@panix2.panix.com> <mailman.3700.1352930072.27098.python-list@python.org> <roy-BF8F05.20491814112012@news.panix.com> <pan.2012.11.15.22.54.09.449000@nowhere.com>
NNTP-Posting-Host: localhost
X-Trace: reader1.panix.com 1353028058 29619 127.0.0.1 (16 Nov 2012 01:07:38 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Fri, 16 Nov 2012 01:07:38 +0000 (UTC)
User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Bytes: 1881
X-Original-Bytes: 1777

In article <pan.2012.11.15.22.54.09.449...@nowhere.com>,
 Nobody <nob...@nowhere.com> wrote:

> That's because the high-level routines aren't tied to DNS.

This is true.

>> gethostbyname() and getaddrinfo() use the NSS (name-service switch)
> mechanism, which is configured via /etc/nsswitch.conf. Depending upon
> configuration, hostnames can be looked up via a plain text file
> (/etc/hosts), Berkeley DB files, DNS, NIS, NIS+, LDAP, WINS, etc.

Gethostbyname() long predates NSS.  For that matter, I think it even 
predates DNS (i.e. back to the days when /etc/hosts was the *only* way 
to look up a hostname).

But, that's a nit.