LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2010, 04:27 AM   #1
birla.sunil
LQ Newbie
 
Registered: Oct 2010
Posts: 20

Rep: Reputation: 0
web page redirection


hii i have one domain that is darks.com
i want that if any user open the site bright.com his request will
be redirected to my domain that is darks.com
see (bright.com) is not existed one
please let me know what CNAME or aliases entry i have to make
in forward zone of my dns in rhel 5.3
thanks for help
sunil
 
Old 10-14-2010, 04:48 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
I think what you need is the creation of DNAME.

DNAME defines a new DNS Resource Record called "DNAME", which
provides the capability to map an entire subtree of the DNS name
space to another domain. It differs from the CNAME record which maps
a single node of the name space.

For info visit ->

http://www.rfc-editor.org/rfc/rfc2672.txt

Last edited by prayag_pjs; 10-14-2010 at 04:50 AM.
 
Old 10-14-2010, 05:54 AM   #3
birla.sunil
LQ Newbie
 
Registered: Oct 2010
Posts: 20

Original Poster
Rep: Reputation: 0
can u please write how dname should be write for forward zone ,
as i already mention u that bright.com was non existed zone . the only rediction for darks.com
please mention with eg if possible rather to provide whole pdf
 
Old 10-14-2010, 06:27 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Sorry I can help you with that document only. Try searching for DNAME in google.

Don't expect me to do spoon feeding for you!
 
Old 10-14-2010, 07:57 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

Could you please give more details about what you're trying to accomplish?
Since the domain bright.com is not existent, how can someone visit it? There must be a dns server authoritative for that zone. Then in the zone file for bright.com you can use DNAME like this:
Code:
 
;usual zonefile stuff , like SOA, TTL etc

    NS some.dns.com.
@ DNAME darks.com.
 
Old 10-15-2010, 04:12 AM   #6
birla.sunil
LQ Newbie
 
Registered: Oct 2010
Posts: 20

Original Poster
Rep: Reputation: 0
as u write that :
NS some.dns.com.(It is non-existing domain at my side where i want to redirect ))
@ DNAME darks.com.(existing domain)
can u once again chk ur enteries i think they are not right)

Quote:
Originally Posted by bathory View Post
Hi,

Could you please give more details about what you're trying to accomplish?
Since the domain bright.com is not existent, how can someone visit it? There must be a dns server authoritative for that zone. Then in the zone file for bright.com you can use DNAME like this:
Code:
 
;usual zonefile stuff , like SOA, TTL etc

    NS some.dns.com.
@ DNAME darks.com.
 
Old 10-15-2010, 04:36 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
You should give us more details, about what you're trying to do. Because I suspect you want to do some sort of redirection from your web server and not through the dns server.

Anyway regarding the above example:
If the domain is not existent this is not going to work.
You need a registered domain (bright.com) and a name server (some.dns.com. in the example) that is authoritative for the domain bright.com
Then in the zone file of this domain you use the DNAME notation to redirect requests for bright.com to darks.com.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 12:07 AM
LXer: Dynamic Content - Page Failure Redirection LXer Syndicated Linux News 0 07-11-2008 04:20 AM
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:35 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