GENERATE Command
Paul Vixie
vixie at as.vix.com
Mon Dec 30 03:09:24 UTC 2002
Jeff Grossman <jeff at stikman.com> writes:
> Here is a copy of the beginning of my zone file:
>
> $TTL 3H
> blackholes.stikman.com. IN SOA ns1.stikman.com.
> webmaster.stikma
> n.com. (
> 2002072200 ; Serial
> 3H ; Refresh
> 3H ; Retry
> 4W ; Expire
> 3H ) ; Negative caching
> blackholes.stikman.com. IN NS ns1.stikman.com.
> 133.184.33.4 IN A 127.0.0.2
>
> How would I go about using the GENERATE command to create a range of
> records? The IP number is in the reverse format. The example above
> is 4.33.184.133, but I put the entry in as
> 133.184.33.44.blackholes.stikman.com which returns the IP of 127.0.0.2
> which will block any e-mail from that IP number.
well, after some unsatisfactory results from publishing such a list in the
past, i'm disinclined to send my full private list to the whole forum. but
here's a snippet:
$ORIGIN reject-mail.vix.com.
$TTL 3600
@ IN SOA ns.lh.vix.com. hostmaster.vix.com. (
2002122800 ; serial
3600 ; refresh
1800 ; retry
604800 ; expiry
3600 ) ; minimum
;
NS ns.lh.vix.com.
NS ns-ext.vix.com.
NS ns-int.vix.com.
;
2.0.0.127 A 10.0.0.53
;
; hyson/cybercon
;
$GENERATE 64-127 *.$.37.64 A 10.0.0.53
$GENERATE 128-255 *.$.15.216 A 10.0.0.53
*.198.216 A 10.0.0.53 ; cybercon
;
; exodus (added 29dec2001)
;
*.177.241.208 A 10.0.0.53 ; intouch
*.152.67.209 A 10.0.0.53
*.12.185.209 A 10.0.0.53
; ...
--
Paul Vixie
More information about the bind-users
mailing list