--- tinydns-data.c.orig Sun Oct 29 21:42:53 2000 +++ tinydns-data.c Sun Oct 29 22:12:18 2000 @@ -16,6 +16,8 @@ #include "open.h" #include "dns.h" +#define CONTACT_ADDR "user.domain.com" + #define TTL_NS 259200 #define TTL_POSITIVE 86400 #define TTL_NEGATIVE 2560 @@ -139,6 +141,7 @@ static char *d1; static char *d2; +static char *contact; char dptr[DNS_NAME4_DOMAIN]; char strnum[FMT_ULONG]; @@ -253,8 +256,8 @@ if (line.s[0] == '.') { rr_start(DNS_T_SOA,ttl ? TTL_NEGATIVE : 0,ttd); rr_addname(d2); - rr_add("\12hostmaster",11); - rr_addname(d1); + if (!dns_domain_fromdot(&contact,CONTACT_ADDR "Z",str_len(CONTACT_ADDR))) nomem(); + rr_addname(contact); rr_add(defaultsoa,20); rr_finish(d1); }