I think I just replied to a post similar to this one. If not, edit the /etc/resolv.conf file in the file there are a few lines
nameserver 10.1.1.2 [example]
i 'm discovering monkey web server. I see your post. maybe you can help me :
I've already bought a domain name. but is it possible to give a name to my IP ( dns ?) for free .well you can configure your server to listen for web requests. //etc/resolv.conf just tells your computer where to go to for dns name resolution. if you have bought a domain name, then there would be a place to tell the registering name servers where to go to for name resolution. you can either use their name servers or set up your own. if you are using a dynamic ip address then you can check out dynamicdns which is free * the last time I checked it, it was. but that is for people that dont have a domain name registered. I know that if you use register.com for example there is a place where you can use their nameservers or set up your own. in linux you can use bind * berkeley internet name daemon [ i think ]. I am not sure if bind is included in dsl or not. if it is and you dont know how to configure it check out tldp.org that could help you out. if there is some particular thing that you run into then post back and I will see what I can do to help.
NorthFacei wish to add that if you can get to a configuration screen to use with your domain registration
1. you get the dns stuff worked out...by that I mean you either get bind to work or use their servers.
2. then you need to add a host record...
www 10.1.1.2
that tells the dns servers that when a name request for www followed by your domain is requested it points it to your ip address where your web server is. then your web server will reply and serve the web page.
I hope this helps.
NorthFaceI give up. I don't know linux enough and install the .tar sofware make me crazy. I thought my IP can have a name as my phone number...but it was too simple :
IP is dynamic, there is software for correct this. but i have understant that it's necessary to have an host anyway yes ? (ftp://ftp....)
so, what can I do with dsl and mydsl extension if I want to show a webpage ? monkey is so simple
2. ip address are either static or dynamic. static ip's are ip addresses that don't change. Dynamic ip addresses are issued by a dhcp server and have leases that are set by the isp you get them from. If you have a dynamic ip address and you have a domain name then you can either,
a) update the dns zone file manually everytime it changes.
b) try dynamicdns or something of the sort to do it for you.
"but i have understant that it's necessary to have an host anyway yes ? (ftp://ftp....)"
the first part of (ftp://ftp....) tells the browser that ftp is the protocol that you are using [File Transfer Protocol] the second part is a host record located in the dns zone file for the domain.
example:
www 10.1.1.2 ftp 10.1.1.3
to test the monkey web server try: http://127.0.0.1 that should take you to a index.html page located in the root directory that monkey web server uses by default.
the httpd.conf file is the configuration file that the http daemon uses for directions. It only does what you tell it to do.
servername www or servername 10.1.1.2 or you could put the dynamic ip address that is issued by the isp.
servername www will reference what the name of your webserver is and the websever will listen to requests that are pointed to it by the dns server.
<virtualhost> is a directive that allows you to host multiple websites from the same webserver.
Begin <VirtualHost *> <-- Not sure what the * is ServerName www.domain.com <-- Listens for requests DocumentRoot /chemin/des/html <-- folder where html docs are </VirtualHost> <--similar to html tags end <VirtualHost *> ServerName www1.domain.net DocumentRoot /autre/chemin/des/html </VirtualHost>
I hope that this helps. I dont speak french. I hope that I understood you right. Feel free to post back and I will reply.