This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
70 lines (59 loc) · 2.41 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Overview:
DNS_proxy--leveldb cacahed DNS proxy server.
DNS_proxy read DNS message form trusted DNS server and cached in it's
leveldb.
Fuctions:
1, DNS cache;
2, DNS block list(structed, not implement)
3, ip load balance.
Dependencies:
systems: *nux based and clang 4.0 or later(maybe gcc 4.2 or later)
common unix compile tools.
leveldb: Release 1.2 2011-05-16
http://code.google.com/p/leveldb/
boost: Version 1.49.0
http://www.boost.org/
Protocol Buffers:
Vsersion 2.4.1
http://code.google.com/p/protobuf/
Installation:
Simple Way:
just run "cd DNS_proxy && make", and geted
1, server--DNS_proxy server.
2, client--DNS_proxy client,
maybe another system canbe client, see "Step way".
3, oprecord--DNS_proxy record editor.
Step Way:
1, folder structure
README --
DNS_proxy.xcodeproj -- Xcode project file, i just use xcode
edit source,so it is not work.
DNS_proxy -- source file and more
|
|\ Makefile -- CXX CC and stdlib must be same of when
| compile dependcies uesd.
| if your google tools and boost isn't in
| regular path, you may set GTOOLS and BOOST
|\ dnsdb -- just DNS cacahe, can ignore.
|\ protobuf -- I just protoc cpp files, they may work
| | (I don't Know the internal os protobuf).
| | if not, set protoc your cpp files by SET
| | PROTOC_BIN in the Makefile, and make.
| |\ Makefile --
| |\ protocol.proto -- dns_record definition
| |\ protocol.pb.h & protocol.pb.cc --
| output files of protoc
|\ *.h & *.cpp -- sources
2, source dependencies
!! define: --> is need
A: server --> server.cpp
|\--> record.cpp --> protocol.pb.cc --> protobuf
| \--> leveldb
\--> resovler.cpp --> boost(aiso, uuid and others)
B: client --> client.cpp
\--> resovler.cpp
C: oprecord --> oprecord.cpp
\--> record.cpp
3, Now just CXX the source
or write your Makefile or CMakeLists.txt
4, contact henglinli@gami.com :)