http://address.com - how? [cranky answer]

Joseph S D Yao jsdy at cospo.osis.gov
Fri May 18 16:26:51 UTC 2001


On Fri, May 18, 2001 at 02:25:26PM +0200, Jan wrote:
> this may be a very stupid question. In a master zone for address.com, how
> do I set up http://address.com pointing to one machine?

The URL, <URL: http://address.com/>, is totally out of the sphere of
DNS.  DNS does not deal in URLs.  It does, however, deal in names and
IP addresses.

I only say this so you don't come back later and ask how to redirect
the URL <URL: http://address.com/somepage.html> in DNS.  You can't.
It's impossible.  You have to use your Apache server.

The  n a m e  "address.com" can be associated with an IP address in
DNS: that  i s  the function of DNS.  In the "address.com" zone file,
you can have [e.g.]

$TTL		...
@		SOA	...
		NS	...
		NS	...
		A	desired.IP.add.ress
...

or:

$TTL		...
@		SOA	...
@		NS	...
@		NS	...
@		A	desired.IP.add.ress
...

The "@" on the left-hand side says to use the ORIGIN that was passed
down from the zone {} statement in named.conf - or, later, that was
changed by any $ORIGIN directives.  If there is nothing on the left
hand side [i.e., the first character is white space], then 'named' uses
the left hand side for the previous statement.

The first statement, after the $TTL directive, must always be an SOA,
and it always uses an "@" [or an explicit zone name which MUST AGREE
WITH the default ORIGIN - so I always use "@" anyway].  The second
statement is always an NS statement, and may have a blank LHS or an
"@".  The other NS statements for this zone may follow the first [and
should, for clarity], or they may be elsewhere [;-(].

-- 
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
OSIS Center Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list