Category: Network

Network, Python

Make whois queries

PyWhois is a python module for retrieving WHOIS information of domains. Script: #!/usr/bin/python   import sys, whois from optparse import OptionParser   def main(): try: parser = OptionParser() parser.add_option("-d", "–domain", dest="domain", help="domain to query") (options, args) = parser.parse_args()   if options.domain==None: parser.print_help() sys.exit(0)   print ‘looking for ‘ + options.domain + ‘..n’ w = whois.whois(options.domain) …

C, Microsoft Windows, Network

Resolve hostname to ip address in C

Resolve hostname to ip address (TCP v4) in Windows using C and gethostbyname. #include <stdio.h> #include <winsock2.h> #include <ws2tcpip.h>   #pragma comment (lib, "Ws2_32.lib")   void resolve_hostname_to_ipaddress(char* hostname);   int main(int argc, char* argv[]) { resolve_hostname_to_ipaddress("hostname.com");   return EXIT_SUCCESS; }   void resolve_hostname_to_ipaddress(char* hostname) { struct hostent *he; struct in_addr **addr_list; int i;   WSADATA …

C, Microsoft Windows, Network

Resolve hostname to ip address in C

Resolve hostname to ip address (TCP v4) in Windows using C and getaddrinfo. #include <stdio.h> #include <winsock2.h> #include <ws2tcpip.h>   #pragma comment (lib, "Ws2_32.lib")   void resolve_hostname_to_ipaddress(char* hostname);   int main(int argc, char* argv[]) { resolve_hostname_to_ipaddress("hostname.com");   return EXIT_SUCCESS; }   void resolve_hostname_to_ipaddress(char* hostname) { DWORD ppi = -1; struct addrinfo hints; struct addrinfo *ptr …

Network, Virtualization

Virtual Network Laboratory

Marionnet is a virtual network laboratory: it allows users to define, configure and run complex computer networks without any need for physical setup. Only a single, possibly even non-networked GNU/Linux host machine is required to simulate a whole Ethernet network complete with computers, routers, hubs, switches, cables, and more. Support is also provided for integrating …

Linux, Monitoring, Network

Free Network monitoring tools

Nagios Nagios is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. Designed with scalability and flexibility in mind, Nagios gives you the peace of mind that comes from knowing your organization’s business processes won’t be affected by unknown outages. Nagios is a powerful …