zones: add resolver and domain

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-21 21:30:12 +00:00
parent 1b9ce9f688
commit ee63e80f77
5 changed files with 25 additions and 8 deletions
+4 -2
View File
@@ -2,9 +2,11 @@ package main
// Config describes the repository
type Config struct {
Base string
Base string
Domain string
}
var cfg = &Config{
Base: "./m",
Base: "./m",
Domain: "m.jpi.cloud",
}
+1 -1
View File
@@ -17,7 +17,7 @@ var dumpCmd = &cobra.Command{
RunE: func(_ *cobra.Command, _ []string) error {
var buf bytes.Buffer
m, err := zones.New(cfg.Base)
m, err := zones.New(cfg.Base, cfg.Domain)
if err != nil {
return err
}