subdomains IP-address without domain

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

how configure virtual hosts I know, I don’t know how configure Networking Domain (

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

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