Skip to main content

Posts

Showing posts from November, 2011

DNS Server configuration on Solaris/Linux/Unix system

mkdir -p/usr/local/bind-9.8.1-P1/var/named mkdir -p /usr/local/bind-9.8.1-P1/var/cache mkdir /usr/local/bind-9.8.1-P1/var/run/named chown bind:bind /usr/local/bind-9.8.1-P1/var/run/named/ chmod g+w /usr/local/bind-9.8.1-P1/var/run/named/ chmod g+w /usr/local/bind-9.8.1-P1/var/cache chmod g+w /usr/local/bind-9.8.1-P1/var/named cd /usr/local/ ln -s bind-9.8.1-P1/ bind adduser —home /usr/local/bind/var/named —shell /bin/bash —disabled-password—disabled-login bind cp /home/usuario/.bashrc /usr/local/bind/var/named/ cp /home/usuario/.profile /usr/local/bind/var/named/ chown -R bind:bind /usr/local/bind/var/named/ adduser bind staff chgrp staff /usr/local/src chmod g+w /usr/local/src su - bind cd /usr/local/src/ wget http://ftp.isc.org/isc/bind9/9.8.1-P1/bind-9.8.1-P1.tar.gz tar -xzf bind-9.8.1-P1.tar.gz cd bind-9.8.1-P1.tar.gz ./configure—prefix=/usr/local/bind-9.8.1-P1 —sysconfdir=/usr/local/bind-9.8.1-P1/etc—enable-threads —with-libtool > configure.out less

Sendmail

If you ever felt the need of flushing the sendmail queue How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux If u r worried about sendmail pending mail flush do the following 2 things. 1) manually method –> delete /var/spool/mail/*.* files in this dir –> delete /var/mqueue/*.* files then check if all mail gone using mailq command. all mail will be deleted . 2) using command: use simple command sendmail -v -q in root prompt. it will flush allpending mails. rest to confirm u can run mailq command if all arereally gone !!…. 3) if u want particular domain or user or recepitience mail to delete use this command sendmail -qS -v test.com it will delete all mail from *@test.com sendmail -qR -v gmail.com it will delete all mail from recepient of gmail.com.