$include

Charles Bodley Bodley at tflogic.com
Fri Feb 2 21:06:56 UTC 2001


Thanks works fine now. I always thought that $ORIGIN was required. Out of
curiosity is there a way to look up all subdomains of a primary domain? The
only way I could come up with was to make a spare workstation into a slave
for their domain. This involves far more traffic than is really neccessary.
I could not find an option under Dig to do this. Is there one? For instance
I took over a domain (per orders from above) and they never told me it had a
subdomain of Imc2 pointed at an IP. Is there a tool for discovering this or
are the only options A. make a slave or B. call their IS department.

-----Original Message-----
From: Joseph S D Yao [mailto:jsdy at cospo.osis.gov]
Sent: Thursday, February 01, 2001 5:45 PM
To: Charles Bodley
Cc: bobvance at alumni.caltech.edu; bind-users at isc.org
Subject: Re: $include


On Thu, Feb 01, 2001 at 03:54:40PM -0500, Charles Bodley wrote:
>
> that worked for ttl but won't work for NS
> Feb  1 15:53:12 ns1 named[14249]: /var/named/NS:1: data "IN.com" outside
> zone "test.com" (ignored)
> Feb  1 15:53:12 ns1 named[14249]: Zone "test.com" (file db.test_com): no
NS
> RRs found at zone top
> Feb  1 15:53:12 ns1 named[14249]: master zone "test.com" (IN) rejected due
> to errors (serial 2001020101)
>
> Any Ideas?

I hadn't even noticed that $ORIGIN at the beginning.  IMNSHO, they are
almost always confusing and evil.  Remove it.

Try:
TTL
$TTL	3600

NS
@			IN	NS	ns.tflogic.com.
@			IN	NS	ns2.tflogic.com.

; zone 'test.com'
$include /var/named/TTL

@		IN	SOA	test.com.  hostmaster.tflogic.com. (
				2001020101
				43200
				7200
				1209600
				3600 )
;
$include /var/named/NS
...

As I mentioned before, the "MX" include will NOT work.  However, you
can do this:

$include /var/named/MX

where the file MX contains:

@			IN	MX	10	tflogic.com.

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



More information about the bind-users mailing list