🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #100

Re: Pobieranie informacji z DNS-u

#100
From: Tomasz R. Surmacz
Date: Sat, 15 Mar 1997 18:30
30 lines
1895 bytes
Piotr Piatkowski <kompas@galaxy.uci.agh.edu.pl> wrote:
: Artur Czechowski <arturcz@cyf.gov.pl> wrote:

: : Potrzebna mi jest nastepujaca funkcja: jako argument podaję nazwę serwera,
: : a funkcja zwraca nazwę kanoniczną tegoż serwera. Sprawdzanie czy serwer
: : w ogóle istnieje nie jest potrzebne.

: Czy przez nazwę kanoniczną rozumiesz CNAME? Jeżeli tak, to się nie da :-)

Ależ drogi Watsonie, da się...   RFC882 rzecze wyraźnie:

   Aliases and canonical names
 
      In existing systems, hosts and other resources often have several
      names that identify the same resource...
...
      Most of these systems have a notion that one of the equivalent set
      of names is the canonical name and all others are aliases.
 
Czyli nazwę kanoniczną uzyskuje się pytając do skutku, aż zamiast rekordu
CNAME otrzymamy rekord A.  Chyba że nie ma takiego hosta i poszukiwania
się skończą na jakimś MX lub czymś innym...

:-)

-- 
 _________
(_   _' __) Tomasz R. Surmacz *--* Work:(071)320-2636 tsurmacz@ict.pwr.wroc.pl
  |  (__  \ http://www.ict.pwr.wroc.pl/~tsurmacz/ *----* Home: ts@wroc.apk.net
  |__(____/ For PGP key finger tsurmacz@asic.ict.pwr.wroc.pl *---* irc: TomekS
Technical Details
Message-ID: <5geps5$bo9$1@okapi.ict.pwr.wroc.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!ict.pwr.wroc.pl!not-for-mail
References: <5f3l9m$45l$1@l3xhp.cyf.gov.pl> <5f48fv$7pk@galaxy.uci.agh.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!uw.edu.pl!ict.pwr.wroc.pl!not-for-mail
From: Tomasz R. Surmacz <tsurmacz@ict.pwr.wroc.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: Pobieranie informacji z DNS-u
Date: 15 Mar 1997 18:30:29 GMT
Organization: Technical University of Wroclaw, Poland
Lines: 30
Message-ID: <5geps5$bo9$1@okapi.ict.pwr.wroc.pl>
References: <5f3l9m$45l$1@l3xhp.cyf.gov.pl> <5f48fv$7pk@galaxy.uci.agh.edu.pl>
NNTP-Posting-Host: okapi.ict.pwr.wroc.pl
Mime-Version: 1.0
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970304; sun4m SunOS 5.4]
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit