diff options
| author | Shulhan <ms@kilabit.info> | 2021-11-14 13:16:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-11-14 16:42:57 +0700 |
| commit | 207a7fa24fe58619628e98a9298a3f877ed16146 (patch) | |
| tree | 69677b13af80967af6efce0c728e3e52a6f21532 /lib/dns/server_example_test.go | |
| parent | 0520e7df91272447fdf0dd1be4b61fe75dea88fa (diff) | |
| download | pakakeh.go-207a7fa24fe58619628e98a9298a3f877ed16146.tar.xz | |
lib/dns: add init method to RDataSOA
The ini method initialize the SOA record by setting fields to its default
value if its empty.
The default value for RName is "root", for Serial is current epoch,
for Refresh is 1 day, for Retry is 1 hour, and for Minimum is 1 hour.
While at it, update the comments to be more understandable and represent
the type or fields.
Diffstat (limited to 'lib/dns/server_example_test.go')
0 files changed, 0 insertions, 0 deletions
