Skip to content

Commit

Permalink
Add "aia" MetaDomain
Browse files Browse the repository at this point in the history
Currently hardcoded to point to "this" MetaDomain

Refs namecoin/safetlsa#3
  • Loading branch information
JeremyRand committed Feb 17, 2021
1 parent 88affcd commit 5336820
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,19 @@ func (tx *btx) doMetaDomain() (rrs []dns.RR, err error) {
A: ip,
},
}
case "aia":
// TODO: Make AIA address configurable (currently hardcoded to "this.x--nmc.bit")
rrs = []dns.RR{
&dns.CNAME{
Hdr: dns.RR_Header{
Name: dns.Fqdn("aia." + tx.basename + "." + tx.rootname),
Ttl: 86400,
Class: dns.ClassINET,
Rrtype: dns.TypeCNAME,
},
Target: dns.Fqdn("this." + tx.basename + "." + tx.rootname),
},
}

default:
}
Expand Down

0 comments on commit 5336820

Please sign in to comment.