public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Bind (Named) SOA Records
@ 2006-08-23 16:46 Michael Crute
  2006-08-23 17:33 ` Robert Welz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Crute @ 2006-08-23 16:46 UTC (permalink / raw
  To: Gentoo Lists

I am trying to write a scrip to maintain my Bind zone files and I was
wondering if it is valid to cram the SOA all onto one line. I have
scoured the internet and can't find anyone who does it that way. My
question is... will it break stuff? Right now my SOA looks like:

@       IN      SOA     ns1.domain.com.      hostmaster.domain.com. (
			2006082201  ; serial number
			12h  ; Refresh
			1h ; Retry
			2w ; Expire
			1h ; Min TTL
			)

what I am proposing is this:

@ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )

Are the two equivalent?

-Mike

-- 
________________________________
Michael E. Crute
http://mike.crute.org

I may not have gone where I intended to go, but I think I have ended
up where I intended to be. --Douglas Adams
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bind (Named) SOA Records
  2006-08-23 16:46 [gentoo-user] Bind (Named) SOA Records Michael Crute
@ 2006-08-23 17:33 ` Robert Welz
  2006-08-27  8:16 ` Bryan Whitehead
  2006-08-27 22:23 ` [gentoo-user] " Michael Crute
  2 siblings, 0 replies; 5+ messages in thread
From: Robert Welz @ 2006-08-23 17:33 UTC (permalink / raw
  To: gentoo-user

Michael Crute wrote:
> I am trying to write a scrip to maintain my Bind zone files and I was
> wondering if it is valid to cram the SOA all onto one line. I have
> scoured the internet and can't find anyone who does it that way. My
> question is... will it break stuff? Right now my SOA looks like:
> 
> @       IN      SOA     ns1.domain.com.      hostmaster.domain.com. (
>             2006082201  ; serial number
>             12h  ; Refresh
>             1h ; Retry
>             2w ; Expire
>             1h ; Min TTL
>             )
> 
> what I am proposing is this:
> 
> @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )
> 
> Are the two equivalent?
> 
> -Mike
> 

They should be.
"DNS and BIND", 4th issue, German iprint, from Paul Albitz & Cricket 
Liu, O'Reilly 2004 says (I translate free): The brackets allow the 
SOA-Record to go over several lines.

So I would assume they allow but this is an option only.

Greetings,
Robert

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bind (Named) SOA Records
  2006-08-23 16:46 [gentoo-user] Bind (Named) SOA Records Michael Crute
  2006-08-23 17:33 ` Robert Welz
@ 2006-08-27  8:16 ` Bryan Whitehead
  2006-08-27 21:38   ` Robert Welz
  2006-08-27 22:23 ` [gentoo-user] " Michael Crute
  2 siblings, 1 reply; 5+ messages in thread
From: Bryan Whitehead @ 2006-08-27  8:16 UTC (permalink / raw
  To: Gentoo Lists

You are missing semi-colons after each record...

Also you might want to just make a dummy domain on a test dns - see if it 
works.

On Wed, 23 Aug 2006, Michael Crute wrote:

> I am trying to write a scrip to maintain my Bind zone files and I was
> wondering if it is valid to cram the SOA all onto one line. I have
> scoured the internet and can't find anyone who does it that way. My
> question is... will it break stuff? Right now my SOA looks like:
>
> @       IN      SOA     ns1.domain.com.      hostmaster.domain.com. (
> 			 2006082201  ; serial number
> 			 12h  ; Refresh
> 			 1h ; Retry
> 			 2w ; Expire
> 			 1h ; Min TTL
> 			) 
>
> what I am proposing is this:
>
> @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )
>
> Are the two equivalent?
>
> -Mike
>
>

-- 
Bryan Whitehead
Email:driver@megahappy.net
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Bind (Named) SOA Records
  2006-08-27  8:16 ` Bryan Whitehead
@ 2006-08-27 21:38   ` Robert Welz
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Welz @ 2006-08-27 21:38 UTC (permalink / raw
  To: gentoo-user

Bryan Whitehead wrote:
> You are missing semi-colons after each record...
> 
> Also you might want to just make a dummy domain on a test dns - see if 
> it works.
> 
> On Wed, 23 Aug 2006, Michael Crute wrote:
> 
>> I am trying to write a scrip to maintain my Bind zone files and I was
>> wondering if it is valid to cram the SOA all onto one line. I have
>> scoured the internet and can't find anyone who does it that way. My
>> question is... will it break stuff? Right now my SOA looks like:
>>
>> @       IN      SOA     ns1.domain.com.      hostmaster.domain.com. (
>>              2006082201  ; serial number
>>              12h  ; Refresh
>>              1h ; Retry
>>              2w ; Expire
>>              1h ; Min TTL
>>             )
>> what I am proposing is this:
>>
>> @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )
>>
>> Are the two equivalent?
>>
>> -Mike

; ? Thats just the comments-sign.

Rob
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gentoo-user] Re: Bind (Named) SOA Records
  2006-08-23 16:46 [gentoo-user] Bind (Named) SOA Records Michael Crute
  2006-08-23 17:33 ` Robert Welz
  2006-08-27  8:16 ` Bryan Whitehead
@ 2006-08-27 22:23 ` Michael Crute
  2 siblings, 0 replies; 5+ messages in thread
From: Michael Crute @ 2006-08-27 22:23 UTC (permalink / raw
  To: Gentoo Lists

On 8/23/06, Michael Crute <mcrute@gmail.com> wrote:
> I am trying to write a scrip to maintain my Bind zone files and I was
> wondering if it is valid to cram the SOA all onto one line. I have
> scoured the internet and can't find anyone who does it that way. My
> question is... will it break stuff? Right now my SOA looks like:
>
<snip>
>
> what I am proposing is this:
>
> @ IN SOA ns1.domain.com. admin.domain.com. ( 2006082201 12h 1h 2w 1h )
>
> Are the two equivalent?

OK, after a little testing I determined that it is valid to have it
all on a single line and when it is on a single line the parens are
optional. This works quite nicely and makes my script easier to write.

Also, Bryan... just for your info the semicolons are simply comments
and really aren't at all needed for the DNS server to function
properly.

Thanks for the help everybody.

-Mike

-- 
________________________________
Michael E. Crute
http://mike.crute.org

I may not have gone where I intended to go, but I think I have ended
up where I intended to be. --Douglas Adams
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-27 22:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23 16:46 [gentoo-user] Bind (Named) SOA Records Michael Crute
2006-08-23 17:33 ` Robert Welz
2006-08-27  8:16 ` Bryan Whitehead
2006-08-27 21:38   ` Robert Welz
2006-08-27 22:23 ` [gentoo-user] " Michael Crute

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox