2011-09-09 04:49:35 +00:00
|
|
|
start:makedns_h
|
|
|
|
description:help
|
|
|
|
cmd:makedns -h
|
|
|
|
check:rc==0
|
|
|
|
cmd:makedns --help
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
|
|
|
|
|
|
|
start:makedns_v
|
|
|
|
description:version
|
|
|
|
cmd:makedns -v
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Version
|
|
|
|
end
|
|
|
|
|
2012-02-23 03:13:44 +00:00
|
|
|
start:makedns_d_node
|
|
|
|
description:makedns -d nodename
|
2011-09-09 04:49:35 +00:00
|
|
|
cmd:cp -r /etc/hosts /etc/hosts.backup
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo "10.1.1.1 testnodedns" >> /etc/hosts
|
|
|
|
cmd:mkdef -t node -o testnodedns groups=compute
|
|
|
|
check:rc==0
|
|
|
|
cmd:chdef -t network -o testnet net="10.1.1.0" mask="255.255.255.0"
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
cmd:makedns -n
|
2011-09-09 04:49:35 +00:00
|
|
|
check:rc==0
|
|
|
|
cmd:nslookup testnodedns
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
check:output=~(10.1.1.1)
|
2011-09-09 04:49:35 +00:00
|
|
|
cmd:makedns -d testnodedns
|
2012-02-23 03:13:44 +00:00
|
|
|
check:rc==0
|
|
|
|
check:output=~(Completed updating zones)
|
|
|
|
cmd:nslookup testnodedns
|
|
|
|
check:rc==0
|
|
|
|
check:rc=~(server can't find testnodedns)
|
2011-09-09 04:49:35 +00:00
|
|
|
cmd:rmdef -t node -o testnodedns
|
|
|
|
cmd:rmdef -t network -o testnet
|
|
|
|
cmd:cp -r /etc/hosts.backup /etc/hosts
|
|
|
|
cmd:rm -f /etc/hosts.backup
|
|
|
|
end
|
|
|
|
|
2012-02-23 03:13:44 +00:00
|
|
|
start:makedns_node
|
|
|
|
description:makedns nodename
|
2011-09-09 04:49:35 +00:00
|
|
|
cmd:cp -r /etc/hosts /etc/hosts.backup
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo "10.1.1.1 testnodedns" >> /etc/hosts
|
|
|
|
cmd:mkdef -t node -o testnodedns groups=compute
|
|
|
|
check:rc==0
|
|
|
|
cmd:chdef -t network -o testnet net="10.1.1.0" mask="255.255.255.0"
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
cmd:makedns testnodedns
|
2011-09-09 04:49:35 +00:00
|
|
|
check:rc==0
|
|
|
|
cmd:nslookup testnodedns
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
check:output=~(10.1.1.1)
|
2011-09-09 04:49:35 +00:00
|
|
|
cmd:makedns -d testnodedns
|
|
|
|
cmd:rmdef -t node -o testnodedns
|
|
|
|
cmd:rmdef -t network -o testnet
|
|
|
|
cmd:cp -r /etc/hosts.backup /etc/hosts
|
|
|
|
cmd:rm -f /etc/hosts.backup
|
|
|
|
end
|
|
|
|
|
2012-02-23 03:13:44 +00:00
|
|
|
|
|
|
|
|
2011-09-09 04:49:35 +00:00
|
|
|
start:makedns_n
|
|
|
|
description:makedns,check /var/named
|
|
|
|
cmd:cp -r /etc/hosts /etc/hosts.backup
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo "10.1.1.1 testnodedns" >> /etc/hosts
|
|
|
|
cmd:mkdef -t node -o testnodedns groups=compute
|
|
|
|
check:rc==0
|
|
|
|
cmd:chdef -t network -o testnet net="10.1.1.0" mask="255.255.255.0"
|
|
|
|
check:rc==0
|
|
|
|
cmd:makedns -n
|
|
|
|
check:rc==0
|
|
|
|
cmd:nslookup testnodedns
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
check:output=~(10.1.1.1)
|
2012-08-02 07:46:03 +00:00
|
|
|
cmd:ls /var/named 2>&1 |grep db.10.1.1 || ls /var/lib/named 2>&1 |grep db.10.1.1
|
2011-09-09 04:49:35 +00:00
|
|
|
check:rc==0
|
|
|
|
check:output=~(db.10.1.1)
|
|
|
|
check:output=~(db.10.1.1.jnl)
|
|
|
|
cmd:makedns -d testnodedns
|
|
|
|
cmd:rmdef -t node -o testnodedns
|
|
|
|
cmd:rmdef -t network -o testnet
|
|
|
|
cmd:cp -r /etc/hosts.backup /etc/hosts
|
|
|
|
cmd:rm -f /etc/hosts.backup
|
|
|
|
end
|
|
|
|
|
2012-02-23 03:13:44 +00:00
|
|
|
start:makedns_n_node
|
|
|
|
description:makedns_n_node
|
|
|
|
cmd:cp -r /etc/hosts /etc/hosts.backup
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo "10.1.1.1 testnodedns" >> /etc/hosts
|
|
|
|
cmd:mkdef -t node -o testnodedns groups=compute
|
|
|
|
check:rc==0
|
|
|
|
cmd:chdef -t network -o testnet net="10.1.1.0" mask="255.255.255.0"
|
|
|
|
check:rc==0
|
|
|
|
cmd:makedns -n testnodedns
|
|
|
|
check:rc==0
|
2012-08-02 07:46:03 +00:00
|
|
|
cmd:ls /var/named 2>&1 |grep db.10.1.1 || ls /var/lib/named 2>&1 |grep db.10.1.1
|
2012-02-23 03:13:44 +00:00
|
|
|
check:rc==0
|
|
|
|
check:output=~(db.10.1.1)
|
|
|
|
check:output=~(db.10.1.1.jnl)
|
|
|
|
check:rc==0
|
|
|
|
cmd:makedns -d testnodedns
|
|
|
|
cmd:rmdef -t node -o testnodedns
|
|
|
|
cmd:rmdef -t network -o testnet
|
|
|
|
cmd:cp -r /etc/hosts.backup /etc/hosts
|
|
|
|
cmd:rm -f /etc/hosts.backup
|
|
|
|
end
|
|
|
|
|
2011-09-09 04:49:35 +00:00
|
|
|
start:makedns
|
|
|
|
description:makedns,check /var/named
|
|
|
|
os:Linux
|
|
|
|
cmd:cp -r /etc/hosts /etc/hosts.backup
|
|
|
|
check:rc==0
|
|
|
|
cmd:echo "10.1.1.1 testnodedns" >> /etc/hosts
|
|
|
|
cmd:mkdef -t node -o testnodedns groups=compute
|
|
|
|
check:rc==0
|
|
|
|
cmd:chdef -t network -o testnet net="10.1.1.0" mask="255.255.255.0"
|
|
|
|
check:rc==0
|
|
|
|
cmd:makedns
|
|
|
|
check:rc==0
|
|
|
|
cmd:service named stop
|
|
|
|
cmd:service named start
|
|
|
|
cmd:nslookup testnodedns
|
|
|
|
check:rc==0
|
2012-02-23 03:13:44 +00:00
|
|
|
check:output=~(10.1.1.1)
|
2012-08-02 07:46:03 +00:00
|
|
|
cmd:ls /var/named 2>&1 |grep db.10.1.1 || ls /var/lib/named 2>&1 |grep db.10.1.1
|
2011-09-09 04:49:35 +00:00
|
|
|
check:rc==0
|
|
|
|
check:output=~(db.10.1.1)
|
|
|
|
check:output=~(db.10.1.1.jnl)
|
|
|
|
cmd:makedns -d testnodedns
|
|
|
|
cmd:rmdef -t node -o testnodedns
|
|
|
|
cmd:rmdef -t network -o testnet
|
|
|
|
cmd:cp -r /etc/hosts.backup /etc/hosts
|
|
|
|
cmd:rm -f /etc/hosts.backup
|
|
|
|
end
|
|
|
|
|