Just FYI, I keep a little directory of network-related
ports and a few tools here:

https://www.subspacefield.org/~travis/OpenBSD/

Notably, pf_dns_lookup is a short python program that looks up DNS
names and puts them in a pf table for you.  You can call it from a
cron job to update rules for dynamic DNS entries.  For example:

pf_dns_lookup localhost dynamic_dns.name.tld | tee /etc/table.txt | pfctl -t 
table -T replace -f /dev/stdin

This will store the table in /etc/table.txt too, so it can persist
across reboots.  IP addresses may be used as input, and that they will
merely map to themselves.
-- 
Good code works.  Great code can't fail. -><-
<URL:http://www.subspacefield.org/~travis/>
For a good time on my UBE blacklist, email [EMAIL PROTECTED]

Attachment: pgpRDEu5blpTq.pgp
Description: PGP signature

Reply via email to