Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-14-2010, 04:27 AM
|
#1
|
LQ Newbie
Registered: Oct 2010
Posts: 20
Rep:
|
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
|
|
|
10-14-2010, 04:48 AM
|
#2
|
Senior Member
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Rep: 
|
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.
|
|
|
10-14-2010, 05:54 AM
|
#3
|
LQ Newbie
Registered: Oct 2010
Posts: 20
Original Poster
Rep:
|
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
|
|
|
10-14-2010, 06:27 AM
|
#4
|
Senior Member
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Rep: 
|
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!
|
|
|
10-14-2010, 07:57 AM
|
#5
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
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.
|
|
|
10-15-2010, 04:12 AM
|
#6
|
LQ Newbie
Registered: Oct 2010
Posts: 20
Original Poster
Rep:
|
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
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.
|
|
|
|
10-15-2010, 04:36 AM
|
#7
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
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.
|
|
|
All times are GMT -5. The time now is 12:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|