How would I make my program host a live URL (Like Apache does)? I have code for an HTTP server (using winsock), but how do I make and control a .com?
How would I make my program host a live URL (Like Apache does)? I have code for an HTTP server (using winsock), but how do I make and control a .com?
Register your IP with places like godaddy.
No no. I'm trying to host a domain through my own computer using my own software.
>I'm trying to host a domain through my own computer using my own software.
You can host a domain through your own computer, but if you want it registered online you have to go through a registrar. You seem confused by the difference between server hosting and domain name registration.
My best code is written with the delete key.
Right. Okay, that makes sence now. What I'm want to do is register a domain using my computer. (I'm aware that you have to be connected to use it.)
You can run a DNS server on your computer. That will allow you to answer DNS queries with your own data. But unless you register a domain name with some registrar you'll never get any DNS queries. Running your own DNS server basically means that if you own yarin.com, you can direct foo.yarin.com and bar.yarin.com and so on to other IPs.
DNS names are merely dynamically resolved aliases for IP addresses.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
You both said I need to register my domain with a registrar. But arn't these registrars (like godaddy) just suped-up computers? Meaning, that with my own software, I could 'register' a domain with my own computer if I have the right software?
If millions of computers go through your network every day, sure.
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Yes, you can name your own machine, and set up your own DNS server that resolves the name. However, if you want OTHER people to connect to your computer as "www.yarin.com" for example, then you need the ".com" DNS server to have the name yarin and respond with your address. Once it's in the "global" DNS server, it will then be cached in various DNS servers around the world.
Of course as long as you have a permanent (and global) IP address, you can use http://xxx.yyy.zzz.www (e.g 192.168.0.1 - although this IS an internal IP address, so it's not going to work on the global network(.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
I see. I read more from google on DNS, and I see now how that wouldn't work so easily. Thanks for the replies though.