Posts

Showing posts with the label FreeBSD

PowerDNS Installation on Debian and FreeBSD

PowerDNS is a DNS server, written in C++ and licensed under the GPL. It consists of two parts: Authoritative Server Recursor. PowerDNS can work as only one of them or both. Authoritative server answers queries about domains it is authoritative for i.e. nameserver while Recursor will query other nameserver in Internet to find about the query it was asked with. PowerDNS can use other DNS server for recursion or use PowerDNS Recursor (pdns_recursor) which is ran as a separate process. PowerDNS is a product of the Dutch company PowerDNS.COM BV, with numerous contributions from the Open Source community. The principal author is Bert Hubert. Installation Make sure that there are no other DNS servers are running on your system. Otherwise you will get an error " Binding to UDP socket: Address already in use " #netstat -tuplan | grep 53 This will show if port 53 which is used by DNS servers is open . If you find port 53 opened, you have to either stop the correspo...

Understanding routing table flags

Following command produces very handy routing table of your system. #netstat -r #route The output is very handy and helps in troubleshooting your network problem. The flags if you can understand will help you much more. So here is the summary of the flags and their meaning. Flag Name Meaning 1 RTF_PROTO1 Protocol specific routing flag 1 2 RTF_PROTO2 Protocol specific routing flag 2 3 RTF_PROTO3 Protocol specific routing flag 3 B RTF_BLACKHOLE Just discard pkts (during updates) b RTF_BROADCAST The route represents a broadcast address C RTF_CLONING Generate new routes on use c RTF_PRCLONING ...

Cacti on Freebsd

cacti is a very useful tool for monitoring your devices on network. While there are many tutorials on installation and use of cacti this tutorial aims on providing just enough information to make installation work and graphing possible. Cacti requires that the following software is installed on your system. * RRDTool 1.0.49 or 1.2.x or greater * MySQL 3.23 or greater, 4.1.x or 5.x or greater * PHP 4.3.6 or greater, 5.x greater highly recommended for advanced features * A Web Server e.g. Apache On you freebsd box # cd /usr/ports/net/cacti # make config enable plugins # make && make install This will take care of all the packages it requires like * apache * rrdtool * net-snmp * php5-extensions * php5 (With MySQL and SNMP Support) * mysql server To start snmp, apache and mysql in every reboot type # echo 'snmpd_enable="YES"' >>/etc/rc.conf # echo '/usr/local/libexec/mysqld --user=mysql &' >> /etc/rc.conf # echo '/usr/local/sbin/apa...