spf-discuss
[Top] [All Lists]

Re: Another macro letter required besides 'i'

2004-03-22 16:10:33
In <7977991(_at_)pamho(_dot_)net> "Roger Moser" 
<Roger(_dot_)Moser(_at_)pamho(_dot_)net> writes:

Wayne wrote:

While adding IPv6 support for libspf-alt v0.3, I noticed this very
same thing.  I talked with Meng about this a bit, and what I ended up
doing is using the dotted-nibble format if and only if the ip-address
has the 'reverse' flag.  (e.g. %{ir}).  Otherwise, it uses the C
library routine inet_ntop function.

The C routine that I made uses the dotted-nibble format if the macro is used
for producing a domain name (because ':' are not allowed in domain names),
otherwise it uses the same format that BIND displays (probably BIND uses the
inet_ntop function)

Colons are not allowed in hostnames, but they are allowed in domain
names.  Try "dig FFFF::1.midwestcs.com txt +short".


Also, is foo=%{i} a domain name, or a string?


But for the explanation string we need a macro "%{c}" that produces a
string in following format:

I thought about a new variable, but what would be the semantics for
IPv4?  How do you write an SPF record that works for both IPv4 and IPv6?

I don't understand what you mean.

What would "exists:%{c}.foo.example.com" do when you are using IPv4?



-wayne