From owner-freebsd-questions Thu May 28 14:58:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05446 for freebsd-questions-outgoing; Thu, 28 May 1998 14:58:20 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from darla.swimsuit.internet.dk (pm25-17.image.dk [194.234.59.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA05264 for ; Thu, 28 May 1998 14:58:00 -0700 (PDT) (envelope-from leifn@internet.dk) Received: from darla.swimsuit.internet.dk (darla.swimsuit.internet.dk. [192.168.0.10]) by darla.swimsuit.internet.dk (8.8.8/8.8.8) with SMTP id XAA10857 for ; Thu, 28 May 1998 23:57:39 +0200 (CEST) (envelope-from leifn@internet.dk) Date: Thu, 28 May 1998 23:57:38 +0200 (CEST) From: Leif Neland Reply-To: leifn@internet.dk To: questions@FreeBSD.ORG Subject: perl, MX lookup Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a perlscript, I can use gethostbyname to check if a given host exists. But how can I check if there exists a MX-record for a given host? I probably could system("host -t MX $host"), but I'd rather have a "native" perl solution. (I want to check in a script if an email-adress contains a valid hostpart) Leif Neland leifn@internet.dk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message