LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-10-2008, 04:57 PM   #1
r3gan
LQ Newbie
 
Registered: Jan 2006
Distribution: Debian
Posts: 12

Rep: Reputation: 0
Question bind9 zone file question


Hi, I hope I have the correct forum for this question.

My question is about zone files in Bind9, or any DNS program I guess... with regard to the zone file syntax. Is it possible to have a zone file for a particular domain that does not contain any A records?

Here's an example:
Code:
$TTL 259200 
example.com. IN SOA ns1.nameservers.com. postmaster.example.com. (
       2008061000       ; Serial
       259200           ; Refresh 3 days
       3600             ; Retry 1 hour
       1209600          ; Expire 2 weeks
       1800 )           ; Negative Cache TTL 30 minutes
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Name Servers
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      IN      NS      ns1.nameservers.com.
      IN      NS      ns2.nameservers.com.
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; Aliases
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
www   IN      CNAME   www.someotherdomain.com.
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
; End of File
; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I assume in the above situation, a query to www.example.com would resolve to the same IP address as given to www.someotherdomain.com. Is this valid syntax for the domain zone file for example.com? It does not define any A records for the domain, and only lists one available domain (www.example.com) which is an alias to a totally different domain name. I'm wondering if this is allowed or if there are other "best practices" recommended.

Thanks!
 
Old 06-18-2008, 03:47 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If you are setting up a zone example.com, then the name servers you list for the example.com would be on the system running the DNS server. Otherwise, you'd be setting up a zone, but indicating that some other DNS server is authoritative for the very zone you are configuring.

Your SOA record says that this DNS server is authoritative for example.com. Therefore, you need a name server in the example.com zone to handle authoritative queries. Thus, you will have at least one NS record, and it will require one A record.
 
Old 06-18-2008, 04:23 PM   #3
r3gan
LQ Newbie
 
Registered: Jan 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Question

Yes, in my example, ns1.nameservers.com resolves to the exact same IP address. So given this, is my example then valid?
 
Old 06-18-2008, 04:25 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
How is ns1.nameservers.com to be resolved into an IP address ?
 
Old 06-18-2008, 04:26 PM   #5
r3gan
LQ Newbie
 
Registered: Jan 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
There is another zone file on the same machine for nameservers.com, which has the host ns1.nameservers.com pointing to it's IP. Both the example.com and nameservers.com zone files would be on the same primary DNS server.
 
Old 06-18-2008, 04:34 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
In that case, as long as the name servers for the example.com zone are resolvable on the same BIND server, then your zone file above is fine.
 
Old 06-18-2008, 05:49 PM   #7
r3gan
LQ Newbie
 
Registered: Jan 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

Yeah, both zone files example.com and nameservers.com are defined and reside on the exact same machine running Bind.

Thanks for your input, I wanted to check before changing some zone files to use the above syntax.
 
  


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
bind9: configuration: non-authoritative zone tilman1 Linux - Networking 3 05-11-2008 05:06 PM
shared zone file in bind9 matiasquestions Linux - Server 2 04-04-2008 09:02 AM
deleted master dns zone and messed bind9 up :\ steve51184 Linux - Server 23 03-24-2008 06:07 AM
DNS Zone x-fer - From one zone to another / Debian 3.1 + BIND9 kenwoodgt Linux - Software 0 11-01-2006 10:28 AM
(Bind9) New Zone icon not visible in Webmin Akhran Ubuntu 0 01-29-2006 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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