Hi, Im trying to implement a class for email validation (Manuel Lemos's PHP E-mail validation class). I dont understand exactly the explanation on how to set the following variable:
$validator->exclude_address="";
Here is the explanation on how to set it:
/ When it is not possible to resolve the e-mail address of
destination server (MX record) eventually because the domain is
invalid, this class tries to resolve the domain address (A
record). If it fails, usually the resolver library assumes that
could be because the specified domain is just the subdomain
part. So, it appends the local default domain and tries to
resolve the resulting domain. It may happen that the local DNS
has an for the A record, so any sub-domain is resolved to some
local IP address. This prevents the class from figuring if the
specified e-mail address domain is valid. To avoid this problem,
just specify in this variable the local address that the
resolver library would return with gethostbyname() function for
invalid global domains that would be confused with valid local
domains. Here it can be either the domain name or its IP address. */
Please if someone could explain to me how i could get the local address that the library resolver would return.
Thank you