setup needed to run web servers using free dns services
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
setup needed to run web servers using free dns services
hi,
i want to run a webserver from dns service provided by dyndns.com or easydns.org.so i installed apache webserver and the page loads well in my system but not on the internet.The site even says it is possible to run ftp,etc.
Does it require a slave dns bind configuration ?As it is a free service they have some top level domain names, and we have to create under it.
Ex.
<oursitename>.homeunix.com
Anybody experienced in these sites ,plz help me.
hi,
i have done all the things done except this quote.can u please explain me that.
My internet connection is through pppoe.will it uses a router or acts as a router.
thanks and regards,
Nirmal Tom.
Well, in my modem/router that was given to me by my provider, there was a section in it named: DDNS. In here, i had to provide my username/password from DynDNS. If i didn't do this, my dyndns didn't work.
there's different types of free ddns services you can use. i use no-ip (which also is registered as multiple other domain names). when you create a free account and setup ddns, there's a client you can download and run on your pc that will run as a service/daemon. the program will point your ip address to a domain of your choosing. so you can browse to www.mydomain.no-ip.com and view pages on your web server
hi,
let me more descriptive
my private ip:192.168.1.254
subnet mask:255.255.255.0
my ISP gave me an ethernet modem(PPPOE)
its ip is 192.168.1.1
so my,
gateway 192.168.1.1
primary dns 192.168.1.1
and i have to supply username and password to connect to the internet
Every time i connect to internet it gives me a new ip(dynamic)
121.247.254.174(this time)
i registered in dyndns.com with the username nirmaltom and registered the domain
autokanson.homeunix.com.I downloaded ddclient to update my ip in their dns.It runs as a service(like maybbach said).It works fine and checked it manually by getting into their site.
Modify Dynamic DNS autokanson.homeunix.com
IP in Database/DNS: 121.247.254.174
Last Updated: Sat Jan 13 06:00:09 2007
So i think this part works fine.But i am not able to get my desired output (i.e)my web page on internet.I have opened my ports 80 on iptables.
My queries are
1) do i need port forwading?After all have ethernet modem,not possible a router!(quite confusing)
2)my contents in /etc/hosts are only the loopback address and /etc/resolv.conf are
nameserver 202.54.29.5
nameserver 202.54.6.60
do i need to add something to this?
3)I set this machines host name as server.room.com(for my private room network)
Its a virtual host configuration in apache.I need clarification in it.In section2 of its configuration file,i set the directive ServerName
ServerName autokanson.homeunix.com:80
is it correct as its a virtual host?
4)Also in section3 virtual hosts,i set
NameVirtualHost autokanson.homeunix.com:80
OUTPUT of httpd -S:
[root@server ~]# httpd -S
VirtualHost configuration:
121.247.254.174:80 is a NameVirtualHost
default server autokanson.homeunix.com (/etc/httpd/conf/httpd.conf:990)
port 80 namevhost autokanson.homeunix.com (/etc/httpd/conf/httpd.conf:990)
wildcard NameVirtualHosts and _default_ servers:
_default_:443 autokanson.homeunix.com (/etc/httpd/conf.d/ssl.conf:81)
Syntax OK
[root@server ~]#
hi,
a little update it might be a router when i type its address in my browser it asks me an user name and password,and pitty, i dont know what to give?
regards,
Tom.
Virtually every cable/dsl modem sent by ISP's now is a router/firewall also, so I'm thinking port forwarding isn't properly configured. go to www.canyouseeme.org, and it will tell you what your public ip address is. in the box, type in 80 for the port to verify that port 80 is open on your router. if port 80 isnt open then the problem has nothing to do w/ dns. then try to log into your dsl router and see if you can change the settings. if you have your own router as well, you'll need to open up the ports on that router also. if port shows up successfully, then use nslookup on autokanson.homeunix.com and make sure the ip address is correct.
i did a port scan and it doesnt seem you have any ports open, so im guessing its a firewall issue.
hi,
a little bit lucky,my ISp today replaced it with a new one Billion Bipac 5200s.
It has a ddns section and NAt section.I will try it up and tell u the results,
Thanks a lot
regards,
Nirmal Tom.
I just did this command, which asks for the DNS info for your address:
Code:
jim@jimsworktop:~$ dig autokanson.homeunix.com
; <<>> DiG 9.3.3 <<>> autokanson.homeunix.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25374
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5
;; QUESTION SECTION:
;autokanson.homeunix.com. IN A
;; ANSWER SECTION:
autokanson.homeunix.com. 60 IN A 121.247.255.45
Ok, so we know your real world IP address. Now, is port 80 open:
Code:
jim@jimsworktop:~$ telnet autokanson.homeunix.com 80
Trying 121.247.255.45...
telnet: Unable to connect to remote host: Connection timed out
So I can't get all the way from my place to your webserver, or I did and your service wasn't running.
Also, with regards to your apache configs, you don't need to make the sitename identical to the DNS name. They don't even need to be remotely close. Your apache config is just for your machine. Just because autokanson.homeunix.com is the name people are using DNS to get to your machine, you don't need to name the site autokanson.homeunix.com. I would for clarity, but naming the virtual host as you did "121.247.254.174:80" doesn't make much sense. What about when your address isn't 121.247.254.174? It will still work because as I said they can be different, but some system or order will help when it's time to troubleshoot problems.
What you need to do going forward - You need to set the router so that the webserver has the same internal address all of the time. I have found it easiest to set the DHCP on the router so the server always gets the same internal address, the aforementioned 192.168.1.254. Then the router needs to be set to port forward anything from the outside real world address at port 80 or 443 to the inside address of 192.168.1.254 at 80 or 443. 2 forwarding rules will do it.
The ddns thing on the router just replaces the ddns client you put on your machine, but you really don't need both. As long as you have the one on the webserver working, there is no need to impliment in on the router too.
hi,
seems my isp gateway is not running their webservice on port 80
nmap 121.247.214.1
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-01-16 16:02 IST
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
RTTVAR has grown to over 2.3 seconds, decreasing to 2.0
Interesting ports on 121.247.214.1.chennai-dynamic-bb.vsnl.net.in (121.247.214.1):
Not shown: 1677 closed ports
PORT STATE SERVICE
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
Nmap finished: 1 IP address (1 host up) scanned in 67.335 seconds
Your IP Version: IPv4
Your IP: 121.247.214.200 (port 39257)
Your ASN: 0 [IANA-RSVD-0]. ASN Registrar: ARIN
Your country: India
Your User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061018 BonEcho/2.0
Your Browser: uses Gecko Engine [date=20061018]
Your Operating System:
(from TCP/IP headers) Unix
Your Operating System:
(from browser string) X Window System, Linux
it shows me the port no as 39257
so, how i should make apache to listen on this port too
well,before for browsing i had only ports 80 and 443 opened
I think there is some sort of mapping.Any ideas and suggestions plz.
No man, I think you're misunderstanding. The browser port isn't what port your computer will allow connections on, it is what port your client computer connected to their computer (the server) at. Your machine sent a request to them (dnsstuff) at port 80, and in your case, their server said "connection received, move to port 39257 for info". When I just did it, I used port 63075, but I can promise you I am not running a webserver on port 63075!
Your ISP has no need to run a webservice on a gateway. Why would you think they would? Your gateway is probably a router, not a webserver. As an ISP, they have many addresses available to use, they wouldn't try and host websites on the same IP that is a gateway for clients.
There is no mapping sir! All you need open is ports 80 and 443. However, it still doesn't connect. Let's do this piece by piece.
1) From your webserver, open a browser (if you have X windows installed, if not, use lynx), and send it to http://localhost . It should see your website. If not, apache isn't configured right.
2) From another computer on your LAN, go to the webservers local IP, which you said previously was http://192.168.1.254 . Does the other computer see your website?
3) Have any of us look at http://autokanson.homeunix.com , and if we see your site, port forwarding on your router is configured correctly. If not, then you need to tweak your router settings.
1) From your webserver, open a browser (if you have X windows installed, if not, use lynx), and send it to http://localhost . It should see your website. If not, apache isn't configured right.
its working fine
Quote:
Originally Posted by JimBass
2) From another computer on your LAN, go to the webservers local IP, which you said previously was http://192.168.1.254 . Does the other computer see your website?
its too working
Quote:
Originally Posted by JimBass
3) Have any of us look at http://autokanson.homeunix.com , and if we see your site, port forwarding on your router is configured correctly. If not, then you need to tweak your router settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.