Difference between pages "ClamAV" and "DNS"

From WeWeWeb Wiki
(Difference between pages)
Jump to navigationJump to search
(Created page with "Homepage of clamav: http://www.clamav.net/ For Fedora, After adding Fedora US to yum & up2date yum install clamav yum install clamav-update Test the clamav updat...")
 
(Created page with "In CentOS, the following packages are related to DNS: # bind..............................DNS 主程式 # bind-chroot..................將 bind 主程式關在家理 # bind-u...")
 
Line 1: Line 1:
Homepage of clamav: http://www.clamav.net/
+
In CentOS, the following packages are related to DNS:
  
For Fedora,
+
# bind..............................DNS 主程式
 +
# bind-chroot..................將 bind 主程式關在家理
 +
# bind-utils......................用戶搜詢主機名稱的相關指令
 +
# system-config-bind
 +
# caching-nameserver
  
After adding Fedora US to [[yum]] & [[up2date]]
+
Only the first three packages are required to install.
  
yum install clamav
+
Following the following steps:
yum install clamav-update
 
  
Test the clamav update interactively by:
+
1. In /usr/share/doc/bind-9.3.6/sample/ there are two directories etc/ and var/ copy the files to etc/ 及 var/named/ under /var/named/chroot/.
  
freshclam
+
2. Update the named.conf file.
  
To activate the freshclam,
+
3. There are lines like:
  
In /etc/cron.daily,
+
  key ddns_key {
add a file clamav-update.cron:
+
        algorithm hmac-md5;
 +
        secret "use /usr/sbin/dns-keygen to generate TSIG keys";
 +
  };
  
   #!/bin/sh
+
If you don't need dynamic update, you can disable it. For gen the key accordingly. You can also use:
  /usr/bin/freshclam --quiet
+
   Include "/etc/named.keys";
 +
And put all key values in that file.
  
set execute mode: chmod +x clamav-update.cron
+
4. Put all the zone information inside the view section.
  
For CentOS:
+
5. To enable write of master zone, put 'ENABLE_ZONE_WRITE=yes' in /etc/sysconfig/named.
  
It has yum repository, to install:
+
6. Start named service
 
+
   service named start
RPMForge: rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
 
 
 
Source: http://dag.wieers.com/rpm/FAQ.php#B
 
 
 
To install clamav from RPM SRC:
 
 
 
Download the independent rpm src file in http://packages.sw.be/clamav/
 
 
 
Eg. clamav-0.96.2-2.rf.src.rpm
 
 
 
Uninstall the old version.
 
 
 
Change to root and install as normally done for an RPM
 
 
 
   rpm -ivh clamav-0.96.2-2.rf.src.rpm
 
 
 
 
 
Change directory to /usr/src/redhat/SPECS/ and issue the command
 
 
 
rpmbuild -ba --clean clamav.spec
 
 
 
If you are not interested in the sendmail milter, then you can add --without milter. (need to ensure the packet check-devel has been installed.)
 
 
 
Upon completion, you can find the rpm in /usr/src/refhat/RPMS/i386.
 
 
----
 
----
 
Goto [[Linux]]
 
Goto [[Linux]]

Latest revision as of 11:59, 27 January 2022

In CentOS, the following packages are related to DNS:

  1. bind..............................DNS 主程式
  2. bind-chroot..................將 bind 主程式關在家理
  3. bind-utils......................用戶搜詢主機名稱的相關指令
  4. system-config-bind
  5. caching-nameserver

Only the first three packages are required to install.

Following the following steps:

1. In /usr/share/doc/bind-9.3.6/sample/ there are two directories etc/ and var/ copy the files to etc/ 及 var/named/ under /var/named/chroot/.

2. Update the named.conf file.

3. There are lines like:

 key ddns_key {
       algorithm hmac-md5;
       secret "use /usr/sbin/dns-keygen to generate TSIG keys";
 };

If you don't need dynamic update, you can disable it. For gen the key accordingly. You can also use:

 Include "/etc/named.keys";

And put all key values in that file.

4. Put all the zone information inside the view section.

5. To enable write of master zone, put 'ENABLE_ZONE_WRITE=yes' in /etc/sysconfig/named.

6. Start named service

 service named start

Goto Linux