If you do a MX check, but the domain name is actually a CNAME, then an exception is generated - eg Email::Valid::mx('gallery-kitchen.co.uk') :-
*** FATAL PROGRAM ERROR!! Unknown method 'exchange'
*** which the program has attempted to call for the object:
***
*** gallery-kitchen.co.uk. 220 IN CNAME cf-protected.gallery-kitchen.co.uk.
***
*** This object does not have a method 'exchange'. THIS IS A BUG
*** IN THE CALLING SOFTWARE, which incorrectly assumes that the
*** object would be of a particular type. The type of an object
*** should be checked before calling any of its methods.
This is generated from sub _net_dns_query - need to check that what was returned really was a MX or has a exchange method available.
If you do a MX check, but the domain name is actually a CNAME, then an exception is generated - eg
Email::Valid::mx('gallery-kitchen.co.uk')
:-This is generated from sub
_net_dns_query
- need to check that what was returned really was a MX or has a exchange method available.