LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-12-2013, 03:59 PM   #1
techmom50
Member
 
Registered: Aug 2013
Posts: 36

Rep: Reputation: Disabled
clarification on a CNAME in a primary zone


I have a server ubuntu.mydomain.com 192.168.1.XXX it has a cname of git.mydomain.com should I enter as a:
ubuntu IN A for 192.168.1.XX
git IN CNAME as ubuntu.mydomain.com.
or
git IN CNAME as 192.168.1.XX
I am a littleconfused even after reading the Bind 9 guide

Last edited by techmom50; 09-12-2013 at 04:31 PM. Reason: better construction of question
 
Old 09-13-2013, 01:25 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Hi,

The 1st is the correct one.
You should use a hostname and not an IP address.

Cheers
 
1 members found this post helpful.
Old 09-13-2013, 04:58 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7 / 8
Posts: 3,529

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
And to perhaps shed some light on your confusion, CNAME is an alias, it tells the resolver to "go look up this name for the IP". So entering an IP as a CNAME defeats the purpose.

Hope that helps too.
 
1 members found this post helpful.
Old 09-13-2013, 11:13 AM   #4
techmom50
Member
 
Registered: Aug 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thank you bathory & TenTenths for the clarifications it helps a lot.
 
  


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
Zone files Not updating from primary to secondary. anishkumarv Linux - Server 3 11-10-2011 05:40 PM
[SOLVED] Reverse zone testing error on Linux6 primary DNS kahafil Linux - Server 3 10-28-2011 11:31 AM
www cname record for external host in DNS zone file hebblethwaite Linux - Networking 2 10-22-2008 10:36 PM
DNS Zone Record: CNAME Not Working vbfischer Linux - Networking 2 10-13-2008 03:02 PM

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

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