config history log
[root@teerayuth ~]#export HISTTIMEFORMAT=”%F %T ”
history -c
history -d offset
!(ตำแหน่ง บรรทัด)
[root@teerayuth ~]#export HISTTIMEFORMAT=”%F %T ”
history -c
history -d offset
!(ตำแหน่ง บรรทัด)
$ date ‘+%d/%m/%Y %H.%M’
15/10/2008 22.15
OR
#!/bin/sh
TIME=`date ‘+%d/%m/%Y %H.%M’`
echo “Time is $TIME”
Install StartUp Manager in Ubuntu
sudo apt-get install startupmanager
This will complete the installtion
1.export http_proxy=http://192.168.1.1:8080
2.vi /etc/apt/apt.conf
Acquire::http::Proxy “http://192.168.1.1:8080″;
enjoy ![]()
1.[root@me Server]# rpm -Uvh caching-nameserver-9.3.3-7.el5.i386.rpm
2.[root@me Server]# vi /etc/named.caching-namedserver.conf
options {
listen-on port 53 { 192.168.16.131; };
listen-on-v6 port 53 { ::1; };
forwarders {
203.144.255.71;
203.144.255.72;
};
directory “/var/named”;
dump-file “/var/named/data/cache_dump.db”;
statistics-file “/var/named/data/named_stats.txt”;
memstatistics-file “/var/named/data/named_mem_stats.txt”;
query-source port 53;
query-source-v6 port 53;
// allow-query { localhost; };
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
view localhost_resolver {
// match-clients { localhost; };
// match-destinations { localhost; };
recursion yes;
include “/etc/named.rfc1912.zones”;
};
3. [root@me Server]# vi /etc/named.rfc1912.zones
zone “tech.com” IN {
type master;
file “tech.com.fwd”;
allow-update { none; };
};
zone “16.168.192.in-addr.arpa” IN {
type master;
file “tech.com.rev”;
allow-update { none; };
};
4. [root@me Server]#cd /var/named/chroot/var/named
5. [root@me named]# cp named.local tech.com.fwd
6. [root@me named]# vi tech.com.fwd
$TTL 86400
@ IN SOA me.tech.com. root.tech.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS me.tech.com.
IN A 192.168.16.131
me IN A 192.168.16.131
7. [root@me named]#cp tech.com.fwd tech.com.rev
8. [root@me named]#vi tech.com.rev
$TTL 86400
@ IN SOA me.tech.com. root.tech.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS me.tech.com.
131 IN PTR me.tech.com.
9. [root@me named]#chown root.named tech.com.*
10 [root@me named]#vi /etc/resolv.conf
nameserver 192.168.131
11. [root@me named]#service named restart
12 [root@me named]#dig -x 192.168.16.131
OR
13 [root@me named]#nslookup 192.168.16.131
>server 192.168.16.131
Default server: 192.168.16.131
Address: 192.168.16.131#53
> me.tech.com
Server: 192.168.16.131
Address: 192.168.16.131#53
Name: me.tech.com
Address: 192.168.16.131
> 192.168.16.131
Server: 192.168.16.131
Address: 192.168.16.131#53
131.16.168.192.in-addr.arpa name = me.tech.com.
> exit