Permalink
Browse files

done?

  • Loading branch information...
1 parent 8f78904 commit a07c118c2b754d702945c162e10ea04c6a106ccf @uberj committed Mar 10, 2011
Showing with 18 additions and 3 deletions.
  1. +15 −0 README
  2. +1 −1 dns_c.h
  3. +2 −2 parser.c
View
15 README
@@ -1,3 +1,18 @@
+Don't read this.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
http://www.netfor2.com/dns.htm
^ A good site.
Reference:
View
@@ -7,7 +7,7 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#define SIZE 512
-#define NAME_SERVER "ns1.oregonstate.edu"
+#define NAME_SERVER "ns2.oregonstate.edu"
#define LISTEN_PORT 7001
#define DNS_PORT "53"
#define DNS_HEADER_SIZE 12
View
@@ -59,8 +59,8 @@ int _data_print( unsigned char* array, unsigned char size, int index, int ip){
if(ip){
printf("%i.",array[index+i]);
}else{
- if(array[index+1]>0x21){
- if(array[index+1]>0x21){
+ if(array[index+i]>0x21){
+ if(array[index+i]>0x21){
printf("%c",array[index+i]);
}else{
printf(".");

0 comments on commit a07c118

Please sign in to comment.