|
|
@ -31,8 +31,12 @@ type IP struct { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
|
|
|
|
test, err := os.Hostname() |
|
|
|
|
|
|
|
if err == nil { |
|
|
|
|
|
|
|
host = test |
|
|
|
|
|
|
|
} |
|
|
|
flag.StringVar(&configFile, "c", "/etc/sssd/sssd.conf", "Path to SSSD Config.") |
|
|
|
flag.StringVar(&configFile, "c", "/etc/sssd/sssd.conf", "Path to SSSD Config.") |
|
|
|
flag.StringVar(&host, "h", host, "Host ID for DNS (relativeDomainName)") |
|
|
|
flag.StringVar(&host, "h", "", "Host ID for DNS (relativeDomainName)") |
|
|
|
flag.StringVar(&domain, "d", "", "Domain for DNS (zoneName)") |
|
|
|
flag.StringVar(&domain, "d", "", "Domain for DNS (zoneName)") |
|
|
|
flag.Parse() |
|
|
|
flag.Parse() |
|
|
|
} |
|
|
|
} |
|
|
|