Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 May 1998 23:57:38 +0200 (CEST)
From:      Leif Neland <leifn@internet.dk>
To:        questions@FreeBSD.ORG
Subject:   perl, MX lookup
Message-ID:  <Pine.BSF.3.96.980528235405.8435A-100000@darla.swimsuit.internet.dk>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980528235405.8435A-100000>