Changeset 39 for trunk/notes
- Timestamp:
- 12/01/09 17:21:41 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/notes
r2 r39 224 224 update_nameservers() 225 225 226 227 FFFF:FFFF:FFFF:FFFF : FFFF:FFFF:FFFF:FFFF 228 we get: 229 <x>:<x>:FFFF:FFFF 230 we assign: 231 <x>:<x>:<y>:<a> (/64, nominally equivalent to current /32, logically) 232 <x>:<x>:<y>:<b>FF (/56, bitwise equivalent to current /24 relative to /32) 233 <x>:<x>:<y>:FFFF (/48, bitwise equivalent to current /16 relative to /24) 234 235 Allocations SHOULD leave space for growth 236 237 238 SELECT u.user_id, u.email, u.firstname, u.lastname, u.type, g.group_name 239 "FROM users u ". 240 "INNER JOIN groups g ON u.group_id=g.group_id ". 241 ($offset eq 'all' ? '' : " LIMIT $perpage OFFSET ".$offset*$perpage) 242 243 244 SELECT g.group_id, g.group_name, g2.group_name, g.children, count(distinct(u.email)), count(distinct(d.domain)) 245 FROM groups g 246 INNER JOIN groups g2 ON g2.group_id=g.parent_group_id 247 LEFT OUTER JOIN users u ON u.group_id=g.group_id 248 LEFT OUTER JOIN domains d ON d.group_id=g.group_id 249 GROUP BY g.group_id, g.group_name, g2.group_name, g.children 250 251 252 253 record_id | group_id | host | type | val | distance | weight | port | ttl | description 254 -----------+----------+----------------------------------------+------+-------------------------+----------+--------+------+-------+------------- 255 1 | 1 | ns1.example.com:hostmaster.DOMAIN | 6 | 10800:3600:604800:10800 | 0 | 0 | 0 | 86400 | 256 25 | 1 | DOMAIN | 1 | 10.2.3.4 | 0 | 0 | 0 | 7200 | 257 2 | 1 | DOMAIN | 15 | mx1.example.com | 10 | 0 | 0 | 7200 | 258 26 | 1 | DOMAIN | 15 | mx2.example.com | 10 | 0 | 0 | 7200 | 259 27 | 1 | DOMAIN | 2 | ns2.example.com | 0 | 0 | 0 | 7200 | 260 22 | 1 | DOMAIN | 2 | ns1.example.com | 0 | 0 | 0 | 7200 | 261 31 | 1 | www.DOMAIN | 5 | DOMAIN | 0 | 0 | 0 | 10800 | 262 32 | 1 | DOMAIN | 16 | "v=spf1 a mx -all" | 0 | 0 | 0 | 10800 | 263 17 | 1 | DOMAIN | 33 | srv.example.com | 15 | 2 | 325 | 7200 | 264 265 266 serial in domains table 267 'manual' - date+inc 268 'manual' - monotone 269 'auto' - generated (TinyDNS only; uses auto(date) for other exports) 270 271 272 log_id? domain_id? group_id user_id action detail timestamp
Note:
See TracChangeset
for help on using the changeset viewer.