Quick DNS question


Recommended Posts

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

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.

post-14624-1203359470_thumb.jpg

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 by BudMan
Link to comment
Share on other sites

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.

post-14624-1203359470_thumb.jpg

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

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

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.