aboutsummaryrefslogtreecommitdiff
path: root/rex
diff options
context:
space:
mode:
Diffstat (limited to 'rex')
-rwxr-xr-xrex9
1 files changed, 9 insertions, 0 deletions
diff --git a/rex b/rex
index 1990587..234e75e 100755
--- a/rex
+++ b/rex
@@ -403,6 +403,11 @@ namespace eval ::pmres {
set dnscache($mode,$arg) $res
return $res
}
+
+ proc setname {mode arg val} {
+ variable dnscache
+ set dnscache($mode,$arg) $val
+ }
}
proc hostname {arg} {
@@ -2486,6 +2491,10 @@ namespace eval ::config {
lappend hostlist {*}$args
}
+ proc hostname {ip name} {
+ ::pmres::setname -ip $ip $name
+ }
+
proc ifmode {args} {
switch -- $::config(mode) {*}$args
}

Return to:

Send suggestions and report system problems to the System administrator.