loadYOURSELF

loadYOURSELF

Entries Tagged ‘IP’

How to find multiple ip address for one domain name (with c programming)

Some domain’s serve under multiple ip addresses for example google.com

if you want to query this ip addresses then you can use this code block

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv) {
 if (argc < 2) {
   fprintf(stderr,"Usage: ./app www.google.com\n");
   exit(1);
 }

 struct hostent *hp = gethostbyname(argv[1]);

 if (hp == NULL) {
   fprintf(stderr,"query failed\n");
   exit(1);
 } else {
   unsigned int i=0;
   while ( hp -> h_addr_list[i] != NULL) {
     printf( "%d -> %s ",i, inet_ntoa( *( struct in_addr*)( hp -> h_addr_list[i])));
     i++;
   }
   exit(0);
 }
}

Buy me a beer

TI’S NEWEST VOIP GATEWAY SOLUTIONS OFFER MANUFACTURERS INCREASED PERFORMANCE, SCALABILITY AND SUPPORT FOR VIDEO CAPABILITIES OVER ENTERPRISE NETWORKS

Texas Instruments Incorporated (TI) today announced the newest members of its Voice over IP (VoIP) gateway silicon and software solutions that will enable equipment manufacturers to achieve higher channel densities with improved voice quality. TI’s newest gateway solutions are powered by its TMS320C64x+TM digital signal processor (DSP) that significantly increases performance for VoIP and video encode, decode and transcode applications. The flexible architecture of TI’s new solutions allows equipment manufacturers to transition to a common hardware and software architecture that scales from eight to several hundreds of channels while supporting advanced voice and video features. For more information, go to: www.ti.com/voip.


The TNETV2664, TNETV2666, TNETV2686 and TNETV2689 are the newest additions to TI’s field-proven medium density VoIP gateway product family. These solutions support an Ethernet interface and full IP encapsulation that allows the DSPs to put voice media directly on the network. This integration enables manufacturers to choose a smaller, more cost-effective host processor thereby simplifying

Buy me a beer