-Alex- Posted February 18, 2008 Share Posted February 18, 2008 Those of you who are impatient can skip to the bolded part. Hey all. I am setting up a new DNS entry in WHM for a friend on a server that I manage. Basically, he has a machine with a dynamic IP address running Apache, and his router updates DynDNS.org whenever his IP changes which updates http://dannybeckett.dnsalias.net. This means he can access his home Apache installation via http://dannybeckett.dnsalias.net. But what he wants me to do is setup is a DNS zone on my server (hosting dannybeckett.co.uk) so that home.dannybeckett.co.uk will update it's IP from dannybeckett.dnsalias.net. So, a standard DNS record on home.dannybeckett.co.uk with a TTL of something like 300 will suffice. But I have found out that you cannot use a domain name as an A record, so what do you use? PTR? Here is the DNS record I have so far: ; Modified by Web Host Manager ; Zone File for home.dannybeckett.co.uk $TTL 14400 @ 86400 IN SOA ns1.conquerhosting.com. root.delta.ankeservers.com. ( 2008021804 86400 7200 3600000 300 ) home.dannybeckett.co.uk. 86400 IN NS ns1.conquerhosting.com. home.dannybeckett.co.uk. 86400 IN NS ns2.conquerhosting.com. home.dannybeckett.co.uk. 300 IN A dannybeckett.dnsalias.net. home.dannybeckett.co.uk. 14400 IN MX 0 home.dannybeckett.co.uk. mail 300 IN CNAME home.dannybeckett.co.uk. www 300 IN CNAME home.dannybeckett.co.uk. ftp 300 IN CNAME home.dannybeckett.co.uk. Link to comment Share on other sites More sharing options...
Stephen Veteran Posted February 18, 2008 Veteran Share Posted February 18, 2008 ip iirc try making a cname for home.dannybeckett.co.uk to http://dannybeckett.dnsalias.net ste Link to comment Share on other sites More sharing options...
-Alex- Posted February 18, 2008 Author Share Posted February 18, 2008 What on Earth does that mean? Link to comment Share on other sites More sharing options...
Stephen Veteran Posted February 18, 2008 Veteran Share Posted February 18, 2008 add this line home.dannybeckett.co.uk 300 IN CNAME http://dannybeckett.dnsalias.net. Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 18, 2008 MVC Share Posted February 18, 2008 (edited) Your overthinking this.. He has 1 IP right!! Everything just points to dannybeckett.dnsalias.net So on dyndns.org just setup a wildcard. that way anything.dannybeckett.dnsalias.net will resolve to whatever IP dannybeckett.dnsalias.net is currently resolving too. That way he can use virtual hosts or host headers (whichever term you prefer) on his webserver to serve up whatever site he wants depending what url the user uses to get there, ie home. or site2. or www. or etc. edit: BTW http:// is not a valid for use in a CNAME Edited February 18, 2008 by BudMan Link to comment Share on other sites More sharing options...
Stephen Veteran Posted February 18, 2008 Veteran Share Posted February 18, 2008 Your overthinking this.. He has 1 IP right!! Everything just points to dannybeckett.dnsalias.netSo on dyndns.org just setup a wildcard. that way anything.dannybeckett.dnsalias.net will resolve to whatever IP dannybeckett.dnsalias.net is currently resolving too. That way he can use virtual hosts or host headers (whichever term you prefer) on his webserver to serve up whatever site he wants depending what url the user uses to get there, ie home. or site2. or www. or etc. edit: BTW http:// is not a valid for use in a CNAME yeh but he doesnt want anything.dannybeckett.dnsalias.net he wants home.dannybeckett.co.uk to mirror anything.dannybeckett.dnsalias.net easiest to make a cname for home.dannybeckett.co.uk to dannybeckett.dnsalias.net (cnames i think just redirect except dont, they mask it ste Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 19, 2008 MVC Share Posted February 19, 2008 Ah... I misread the difference in the domain names :blush: Yes what he wants is a cname then home IN CNAME dannybeckett.dnsalias.net. As to it masking? No it does not mask -- for the example googles cnames.. notice ping www.google.com Pinging www.l.google.com [64.233.167.104] with 32 bytes of data: When you query for www.google.com it returns the hostname that the cname points too. www.google.com@ns1.google.com.: www.google.com. 604800 IN CNAME www.l.google.com. google.com. 345600 IN NS ns1.google.com. google.com. 345600 IN NS ns2.google.com. google.com. 345600 IN NS ns3.google.com. google.com. 345600 IN NS ns4.google.com. but your browser will not show that, it just wants the IP address to go to. So in a sense I guess you could say its masked in the browser address window. Link to comment Share on other sites More sharing options...
kyro Posted February 19, 2008 Share Posted February 19, 2008 +ste 1 = Budman = 0 (but he has got 3000 already :p ). Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 19, 2008 MVC Share Posted February 19, 2008 hehehe, sure he had the cname portion correct.. But his syntax was all F'd up ;) you can not put HTTP:// in a cname. An his misuse of the quote function = -100 anyway, no matter if the info given was correct or not! Link to comment Share on other sites More sharing options...
Stephen Veteran Posted February 19, 2008 Veteran Share Posted February 19, 2008 lol i was nearly right...not bad for a DNS noob tho :p *finishes fight in MVC only area! ste Link to comment Share on other sites More sharing options...
-Alex- Posted February 19, 2008 Author Share Posted February 19, 2008 Thanks a lot guys :) Link to comment Share on other sites More sharing options...
Recommended Posts