Matthew Ross Walker wrote:

Hans Fugal wrote:
I can't seem to find anything about the "traditional" order for a hosts file. If someone could, post one that would be great.
Anyways thanks for the help.
Well I don't know that there would be, but generally people do the SOA,
the A record for example.com (where example.com is your domain), and
then things like NS and MX records. Finally they do the hosts. There's
nothing magic about this though, it just happens to A) make more sense,
and B) allow you to use a few tricks that cut down on the typing.


I typically do it in this order:

SOA
NS Records
A Record for Domain
MX Records
Everything else, in alphabetic order
------------------------------------------------------------------------


/* PLUG: http://plug.org, #utah on irc.freenode.net
* Unsubscribe: http://plug.org/mailman/options/plug
*/

So ideally it should look like this then?
$ttl 300
biocoin.com.    IN    SOA    ns1.biocoin.com. smorrey.gmail.com. (
           1126368331
           3000
           3600
           3000
           3000 )
ns1.biocoin.com.    IN    A    69.60.117.0
ns2.biocoin.com.    IN    A    69.60.117.0
biocoin.com.            IN    NS    ns1.biocoin.com.
biocoin.com.         IN    NS    ns2.biocoin.com.
biocoin.com.            IN    A    69.60.117.0
www.biocoin.com.    IN    A    69.60.117.0
biocoin.com.    IN    MX    1    mail.biocoin.com.
mail.biocoin.com.    IN    A    69.60.117.0

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to