LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-01-2006, 02:48 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
DNS Redirect?


Hi guys, how do I point from my DNS Server, a domain which I own to another url?

I have a client who wants to point his domain to a blogspot account...
domainname.com -> domainname.blogspot.com

possible?
 
Old 06-01-2006, 02:53 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can use the following to the zone file of the domain you are authoritative for:
Code:
domainname.com IN A IP-of-domainname.blogspot.com
 
Old 06-01-2006, 03:31 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
i was thinking of that.. but i was thinking... how do blogspot resolve "domainname.com" redirects?
 
Old 06-01-2006, 04:16 AM   #4
linuxmanju
Member
 
Registered: Sep 2003
Location: India
Distribution: Debian
Posts: 50

Rep: Reputation: 15
Put two entries.
One
domainname.com IN A Ip-of-the-domain
domainname.blogspot.com CNAME domainname.com

That will resolve both the entries to the specified IP.

Hope that will work.

Regards
Manjunath
 
Old 06-01-2006, 05:40 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i was thinking of that.. but i was thinking... how do blogspot resolve "domainname.com" redirects?
What do you mean by this? blogpost will ask your dns for anything related to domainname.com
 
Old 06-01-2006, 11:02 AM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I don't understand your question. If you want to chang the direction of your domain then all you have to do is change the address to where it needs to point to. All DNS does is resolve numbers to names, it translates numbers to names and names to numbers, not one name to another name. If you want to redirect a web site then you need to do it with the 'redirect' configuration paramater in apache. If you want to change where your domain name points to then change the ip address of the host in the zone file.
 
Old 06-01-2006, 10:07 PM   #7
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linuxmanju
Put two entries.
One
domainname.com IN A Ip-of-the-domain
domainname.blogspot.com CNAME domainname.com

That will resolve both the entries to the specified IP.

Hope that will work.

Regards
Manjunath
ooh thanks

I am actually looking to do it the other way round, which I tried and didn't work

people who entered domainname.com will be directed to domainname.blogspot.com (which belongs to blogspot, not under me)

but i can't just point domainname.com to ip-address of blogspot.com as it wouldn't know to go domainname.blogspot.com

anyway... initially i don't see the url forwarding option on my domainname registrar, but now after checking with them i realise how its done so at least i got what i want.

but being curious, is it possible to do it on our own dns server, thus url-forwarding?

many thanks to the many advice and tips and concerns
 
Old 06-02-2006, 08:40 AM   #8
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
URL forwarding will allow you to forward another domain name to the same web page. So what you can do is change the web page for blogspot.com then forward newdomain.blogspot.com to blogspot.com.

But it sounds to me like you want colocate a domain as a subdomain of another domain. You can create two virtual hosts in apache: blogspot.com and newdomain.blogspot.com then point them to the same web site or separate web sites. However, the browser will still display newdomain.blogspot.com. You can also add the external address of newdomain to the DNS of blogspot.com; make sure newdomain.blogspot.com is created as a virtual host on the server that the web site is currently on. The browser will still display newdomain.blogspot.com. If you want to redirect newdomain.blogspot.com to domain.com so that the browser changes from newdomain.blogspot.com to domain.com then you'll need to create a riderect statement in your web server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
DNS redirect gomez Linux - Networking 1 02-18-2005 04:48 PM
Redirect wonderland Linux - Newbie 3 05-24-2004 11:50 PM
redirect spank Linux - Newbie 2 03-01-2004 03:38 PM
Redirect sheek Programming 1 07-25-2003 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration