Get the exact URL host name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there a way to know what exactly a hostname is?

Per example, we can have the domain « domain.qc.ca » and it could come in
one of those forms:

www.domain.qc.ca
sub.domain.qc.ca
domain.qc.ca

And so on...

I'd like to have only the name « domain.qc.ca ». Same thing for any domain
with any extension like .com, .net, .fr, .on.ca, or whatever the extension
could be

Any idea?

Thanks

Stephane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top