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 05-03-2010, 05:35 PM   #1
abakhiet
Member
 
Registered: Apr 2010
Location: Assiut, Egypt
Posts: 166

Rep: Reputation: 15
Exclamation Dns cname


Hola,
i need to make some claim from my DNS server
i was making some CNAME record and it was works fine, but after some time it stops working and the aliasing wasn't work yet
here is my configuration file :
Code:
$ttl 38400
My Domain.	IN	SOA	localhost.localdomain. My Mail. (
			1270744515
			30M
			3600
			604800
			38400 )
myDomain.	IN	A	Server IP
ns1.myDomain.	IN	A	Server IP
ns2.myDomain.	IN	A	Server IP
myDomain.	IN	NS	ns1.myDomain
myDomain.	IN	NS	ns2.myDomain
myDomain.	IN	MX	1 mail.myDomain.
mail.myDomain.info.	IN	A	Server IP
admin.myDomain.	IN	A	Server IP
www.myDomain.	IN	CNAME	myDomain.
so, what i claim for is my www "CNAME" doesn't work yet
so, the rule what i think is not working is
Quote:
www.myDomain. IN CNAME myDomain.

Last edited by abakhiet; 05-03-2010 at 05:38 PM.
 
Old 05-03-2010, 06:00 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Try changing to this format, I've used it for years and it works.

Code:
$ORIGIN domain.tld.
@       IN      SOA     ns1.domain.tld. adminemail.domain.tld. (
                                2010050301      ;       Serial
                                28800           ;       Refresh
                                7200            ;       Retry
                                604800          ;       Expire
                                3600 )          ;       TTL Minimum

@       900     IN      NS      ns01.domain.tld.
        900     IN      NS      ns02.domain.tld.
                IN      MX      10 mail1.domain.tld.
                IN      MX      20 mail2.domain.tld.
                IN      TXT     "v=spf1 a mx ip4:12.34.56.0/24 ~all"

ns01            IN      A       12.34.56.78
ns02            IN      A       12.34.56.79
mail1           IN      A       12.34.56.80
mail2           IN      A       12.34.56.81
www             IN      A       domain.tld.
What you have should be valid, but without logs or additional information to go against, I'm at a loss as to why it would work for a short while then quit.
 
1 members found this post helpful.
Old 05-04-2010, 06:00 AM   #3
abakhiet
Member
 
Registered: Apr 2010
Location: Assiut, Egypt
Posts: 166

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rweaver View Post
I'm at a loss as to why it would work for a short while then quit.
Really thanks, but i tried to make another CNAME and i cancel it, i think that is the fault
but sure my way was work, please help me
 
Old 06-01-2010, 04:35 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Rep: Reputation: 63
Quote:
Originally Posted by rweaver View Post
Try changing to this format, I've used it for years and it works.

Code:
$ORIGIN domain.tld.
@       IN      SOA     ns1.domain.tld. adminemail.domain.tld. (
                                2010050301      ;       Serial
                                28800           ;       Refresh
                                7200            ;       Retry
                                604800          ;       Expire
                                3600 )          ;       TTL Minimum

@       900     IN      NS      ns01.domain.tld.
        900     IN      NS      ns02.domain.tld.
                IN      MX      10 mail1.domain.tld.
                IN      MX      20 mail2.domain.tld.
                IN      TXT     "v=spf1 a mx ip4:12.34.56.0/24 ~all"

ns01            IN      A       12.34.56.78
ns02            IN      A       12.34.56.79
mail1           IN      A       12.34.56.80
mail2           IN      A       12.34.56.81
www             IN      A       domain.tld.
What you have should be valid, but without logs or additional information to go against, I'm at a loss as to why it would work for a short while then quit.
Why is it not working?
Code:
www.myDomain. IN CNAME myDomain.
And what's domain.tld here instead of ip address?
Code:
www             IN      A       domain.tld.
 
  


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
DNS and CNAME noir911 Linux - Server 3 05-06-2008 02:45 PM
Do we really need CNAME records in DNS? ivj Linux - Networking 3 05-19-2006 04:49 PM
Dns & Cname abhijeetudas Linux - Networking 1 09-15-2005 04:32 AM
DNS, CNAME conflicts in logs cyanescent Linux - Networking 1 05-12-2005 08:31 AM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 10:55 AM


All times are GMT -5. The time now is 03:51 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration