Talk:Zone file

Latest comment: 4 months ago by David spector in topic Use of @ in name field

"Contrast zone files to the efficient, easy-to-parse data files used by djbdns."

Is DJB bragging about his own products again? What an arrogant ass... not everyone considers djbdns to be "efficient, easy-to-parse data". I'm changing this.

Could you please provide us with more information concerning the zone file.


I think the zone file should point www to the domain. In the current sample it is pointing to the name server. Correct me if I'm wrong, please....

Current sample:

  example.com.  A     10.0.0.1              ; ip address for "example.com"
  ns            A     10.0.0.2              ; ip address for "ns.example.com"
  www           CNAME ns                    ; "www.example.com" is an alias for "ns.example.com"

I think it should be this way:

  example.com.  A     10.0.0.1              ; ip address for "example.com"
  ns            A     10.0.0.2              ; ip address for "ns.example.com"
  www           CNAME example.com.          ; "www.example.com" is an alias for "example.com"

Ceeveebee (talk) 15:19, 27 August 2009 (UTC)ceeveebeeReply

I agree that this would be the more likely scenario... changed it. Jonas Wagner (talk) 10:15, 7 September 2010 (UTC)Reply

In the SOA, should 'username.example.com' be 'username@example.com'? Fest3er (talk) 00:32, 20 January 2012 (UTC)Reply



The SOA should NOT have an @. This does mean that email addresses in the form firstname.lastname@example.com will not work. Also please include a non-default example in the zone — Preceding unsigned comment added by 148.64.27.50 (talk) 12:46, 17 July 2020 (UTC)Reply


Cheako (talk) 02:20, 26 August 2020 (UTC)Reply

The zone "example.com." has more records than JUST the A and AAAA, that should't exist as part of the "www" subdomain. It was BETTER to use "ns.example.com.", but I can see where that generates confusion. How about:

  example.com.  A     10.0.0.1              ; ip address for "example.com", mainly useful for directing web traffic.
  ns            A     10.0.0.2              ; ip address for "ns.example.com"
  foo           A     10.0.0.1              ; ip address for "foo.example.com"
  www           CNAME foo.example.com.      ; "www.example.com" is an alias for "foo"
  bar           CNAME ns.example.com.       ; Name-servers normally don't get exciting names, but this one is an example that works for Kerberos setups.

This would be most correct for how a zone should look.

Use of @ in name field

edit

My DNS zone does not accept "@" in the name field, at least for some record types. The article does not seem to address this fact. David Spector (talk) 08:27, 12 June 2024 (UTC)Reply