9 months ago

Check Domain Name is Formed Correctly

Posted 9 months ago by drewdan

Hey Guys. I am hoping you can help me.

I need a function to validate that a domain name is in fact a domain name.

However, it cannot get the A record as this may be a domain name which isnt configured yet, all it needs to check is that the domain name is not malformed. So the domain is something.co.uk or something.com - can anyone point me in the right direction to check this?

I have been Googling it but there seems to be so much info that contradicts each other, im a little confused!

Please sign in or create an account to participate in this conversation.