how get all the subdomains from a url
for example I have this url: www.fk8.ir
and this url have 4 subdomains for example:
- test1.www.fk8.ir
- mytest.www.fk8.ir
- sample.www.fk8.ir
- stack.www.fk8.ir
input is: www.fk8.ir
output:
test1.www.fk8.ir
mytest.www.fk8.ir
sample.www.fk8.ir
stack.www.fk8.ir