Create a URL?

This is a discussion on Create a URL? within the C++ Programming forums, part of the General Programming Boards category; How would I make my program host a live URL (Like Apache does)? I have code for an HTTP server ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,691

    Create a URL?

    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?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,812
    Register your IP with places like godaddy.

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,691
    No no. I'm trying to host a domain through my own computer using my own software.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >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.

  5. #5
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,691
    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.)
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  6. #6
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    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

  7. #7
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,691
    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?
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  8. #8
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    920
    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

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Yarin View Post
    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?
    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.

  10. #10
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,691
    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.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't create child windows
    By OnionKnight in forum Windows Programming
    Replies: 4
    Last Post: 04-10-2011, 05:13 PM
  2. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  3. Create a file from c++ program
    By Dan17 in forum C++ Programming
    Replies: 2
    Last Post: 05-08-2006, 05:25 PM
  4. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  5. How to Create reference to an array in C++
    By shiv_tech_quest in forum C++ Programming
    Replies: 2
    Last Post: 12-20-2002, 10:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21