OleM2k
By:
OleM2k

subdomains IP-address without domain

December 31, 2016 602 views
Networking FreeBSD

I want a subdomains on 1 ip address without domain:
http://sd1.192.81.220.227
http://sd2.192.81.220.227
...
http://sdN.192.81.220.227

how configure virtual hosts I know, I don't know how configure Networking Domain
(https://cloud.digitalocean.com/networking/domains)

2 Answers

IP addresses can't have subdomains, you must register a domain and then add an A record for your sdN.yourdomain.tld pointing to the server IP, alternatively you can add *.yourdomain.tld that way all 3rd level domains get routed to your server unless you specify differently, or lastly, create an A record for servername.yourdomain.tld, point that to your server, then create a CNAME record for sdN.yourdomain.tld and point it to servername.yourdomain.tld.

Note that this is completely unrelated to both Networking and FreeBSD, the term you're looking for is DNS

You can't exactly have that, but there are workarounds, try out these services - xip[dot]io and nip[dot]io, with them you can have as many sub domains as you want.

Have another answer? Share your knowledge.