IN PTR localhost (What's localhost.db look like)

BadBoo bmeyer at rocsoft.net
Tue Jun 27 07:51:16 UTC 2000


I have the bind book, and I have a few questions about the sample
db.0.0.127 file.

It seems to contradict what is written elsewhere, as far as
abbreviation etc. Is this because it is in the beginning of the book,
and the 'shortened' files haven't been taught yet? Or is their a reason
and significance that this file would demand to be  very painstakingly
written out? I have it transcibed as:
------------------------------------
0.0.127.IN-ADDR.ARPA.	IN	SOA	ns.rocsoft.net.
hostmaster.rocsoft.net. (
				2000062700	; Serial
				28800		; Refresh
				7200		; Retry
				604800		; Expire
				10800	)	; Minimum TTL
0.0.127.IN-ADDR.ARPA.	IN	NS      ns.rocsoft.net.
0.0.127.IN-ADDR.ARPA.	IN	NS      www2.rocsoft.net.

1.0.0.127.IN-ADDR.ARPA.	IN	PTR     localhost.
------------------------------------
Would it be correct to re-write it as:
------------------------------------
@	IN	SOA	ns.rocsoft.net. hostmaster.rocsoft.net. (
				2000062700	; Serial
				28800		; Refresh
				7200		; Retry
				604800		; Expire
				10800	)	; Minimum TTL
	IN	NS      ns.rocsoft.net.
	IN	NS      www2.rocsoft.net.
1	IN	PTR     localhost.

------------------------------------

Final question:

Since it is listed as being in 'IN PTR localhost Where do I create a
reference to 'localhost? (or how do I declare 'localhost' ?)
 I didn't find a reference to this in the books index, nor did I find
a post showing how to declare 'localhost.' It may seem trivial, as I
always assumed that the computer just 'knew' what localhost was. But
after I thought about it and chacked all my files in /var/named i see
it is not mentioned in any of them. Is it just part of the initial rc*
boot up files somehwere, a HOSTS declaration? Or can I quit stressing
about it, and just use the db.0.0.127 file as shown above?


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the bind-users mailing list