Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

net/dns.php and checking validity of e-mail hostnames
Hey all -
after checking the minialist documentation, I've found that
read_config() is=20
pretty much mandatory on windows systems... not checked on my linux box
yet.
Would it be feasible to add an option where if a query is called without

first calling read_config it would just use localhost?
I thought I was going mad, assuming that the code fragment would be a
nice=20
little cross platform replacement of getmxrr()

$dns->nameservers() throws an error on my system (Could of course be an
xp=20
issue)

Here's what I'm using instead:

$dnsres =3D new Net_DNS_Resolver();
$dnsres->read_config(INCLUDES_DIR . "resolv.conf");
$resolved =3D $dnsres->("mydomain.com", "CNAME");

if($resolved =3D=3D false)
echo "failed";
else echo "succeeded";

where resolv.conf simply defines localhost at the moment.
without it, will always return false.

Any thoughts you can offer?

Many thanks,

Scott=20

Report this thread to moderator Post Follow-up to this message
Old Post
Scott Harman
08-22-04 01:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:45 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.