├── DNSTest.xcodeproj
├── xcuserdata
│ └── houxh.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── DNSTest.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcuserdata
│ │ └── houxh.xcuserdatad
│ │ └── UserInterfaceState.xcuserstate
└── project.pbxproj
├── DNSTest
├── ViewController.h
├── AppDelegate.h
├── main.m
├── ViewController.m
├── Images.xcassets
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.xib
└── AppDelegate.m
└── DNSTestTests
├── Info.plist
└── DNSTestTests.m
/DNSTest.xcodeproj/xcuserdata/houxh.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/DNSTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/DNSTest.xcodeproj/project.xcworkspace/xcuserdata/houxh.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FreeMind-LJ/DNSTest/HEAD/DNSTest.xcodeproj/project.xcworkspace/xcuserdata/houxh.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/DNSTest/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // DNSTest
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 |
14 | @end
15 |
16 |
--------------------------------------------------------------------------------
/DNSTest/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // DNSTest
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/DNSTest/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // DNSTest
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/DNSTest/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // DNSTest
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 |
11 | @interface ViewController ()
12 |
13 | @end
14 |
15 | @implementation ViewController
16 |
17 | - (void)viewDidLoad {
18 | [super viewDidLoad];
19 | // Do any additional setup after loading the view, typically from a nib.
20 | }
21 |
22 | - (void)didReceiveMemoryWarning {
23 | [super didReceiveMemoryWarning];
24 | // Dispose of any resources that can be recreated.
25 | }
26 |
27 | @end
28 |
--------------------------------------------------------------------------------
/DNSTest.xcodeproj/xcuserdata/houxh.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | DNSTest.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 6D0CE2511B32A4C00034FD5B
16 |
17 | primary
18 |
19 |
20 | 6D0CE26A1B32A4C00034FD5B
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/DNSTest/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/DNSTestTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | lujb.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/DNSTestTests/DNSTestTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // DNSTestTests.m
3 | // DNSTestTests
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface DNSTestTests : XCTestCase
13 |
14 | @end
15 |
16 | @implementation DNSTestTests
17 |
18 | - (void)setUp {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown {
24 | // Put teardown code here. This method is called after the invocation of each test method in the class.
25 | [super tearDown];
26 | }
27 |
28 | - (void)testExample {
29 | // This is an example of a functional test case.
30 | XCTAssert(YES, @"Pass");
31 | }
32 |
33 | - (void)testPerformanceExample {
34 | // This is an example of a performance test case.
35 | [self measureBlock:^{
36 | // Put the code you want to measure the time of here.
37 | }];
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/DNSTest/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | lujb.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/DNSTest/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/DNSTest/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
20 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/DNSTest.xcodeproj/xcuserdata/houxh.xcuserdatad/xcschemes/DNSTest.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
76 |
82 |
83 |
84 |
85 |
86 |
87 |
93 |
94 |
100 |
101 |
102 |
103 |
105 |
106 |
109 |
110 |
111 |
--------------------------------------------------------------------------------
/DNSTest/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // DNSTest
4 | //
5 | // Created by lujb on 15/6/18.
6 | // Copyright (c) 2015年 lujb. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import
11 | #include
12 |
13 |
14 | #include
15 | #include
16 | #include
17 | #include
18 | #include
19 |
20 | @interface AppDelegate ()
21 |
22 | @end
23 |
24 | @implementation AppDelegate
25 |
26 |
27 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
28 | // Override point for customization after application launch.
29 |
30 |
31 |
32 | //方法 1
33 | unsigned char auResult[512];
34 | int nBytesRead = 0;
35 |
36 | nBytesRead = res_query("www.baidu.com", ns_c_in, ns_t_a, auResult, sizeof(auResult));
37 |
38 | ns_msg handle;
39 | ns_initparse(auResult, nBytesRead, &handle);
40 |
41 | NSMutableArray *ipList = nil;
42 | int msg_count = ns_msg_count(handle, ns_s_an);
43 | if (msg_count > 0) {
44 | ipList = [[NSMutableArray alloc] initWithCapacity:msg_count];
45 | for(int rrnum = 0; rrnum < msg_count; rrnum++) {
46 | ns_rr rr;
47 | if(ns_parserr(&handle, ns_s_an, rrnum, &rr) == 0) {
48 | char ip1[16];
49 | strcpy(ip1, inet_ntoa(*(struct in_addr *)ns_rr_rdata(rr)));
50 | NSString *ipString = [[NSString alloc] initWithCString:ip1 encoding:NSASCIIStringEncoding];
51 | if (![ipString isEqualToString:@""]) {
52 |
53 | //将提取到的IP地址放到数组中
54 | [ipList addObject:ipString];
55 | }
56 | }
57 | }
58 | }
59 |
60 | //方法 2
61 |
62 | struct hostent *host = gethostbyname("www.google.com.hk");
63 |
64 | struct in_addr **list = (struct in_addr **)host->h_addr_list;
65 | NSString *ip= [NSString stringWithCString:inet_ntoa(*list[0]) encoding:NSUTF8StringEncoding];
66 | NSLog(@"ip address is : %@",ip);
67 |
68 | //方法 3
69 | Boolean result,bResolved;
70 | CFHostRef hostRef;
71 | CFArrayRef addresses = NULL;
72 |
73 | CFStringRef hostNameRef = CFStringCreateWithCString(kCFAllocatorDefault, "www.google.com.hk", kCFStringEncodingASCII);
74 |
75 | hostRef = CFHostCreateWithName(kCFAllocatorDefault, hostNameRef);
76 | if (hostRef) {
77 | result = CFHostStartInfoResolution(hostRef, kCFHostAddresses, NULL);
78 | if (result == TRUE) {
79 | addresses = CFHostGetAddressing(hostRef, &result);
80 | }
81 | }
82 | bResolved = result == TRUE ? true : false;
83 |
84 | if(bResolved)
85 | {
86 | struct sockaddr_in* remoteAddr;
87 | for(int i = 0; i < CFArrayGetCount(addresses); i++)
88 | {
89 | CFDataRef saData = (CFDataRef)CFArrayGetValueAtIndex(addresses, i);
90 | remoteAddr = (struct sockaddr_in*)CFDataGetBytePtr(saData);
91 |
92 | if(remoteAddr != NULL)
93 | {
94 | //获取IP地址
95 | char ip[16];
96 | strcpy(ip, inet_ntoa(remoteAddr->sin_addr));
97 | }
98 | }
99 | }
100 | CFRelease(hostNameRef);
101 | CFRelease(hostRef);
102 |
103 | return YES;
104 | }
105 |
106 | - (void)applicationWillResignActive:(UIApplication *)application {
107 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
108 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
109 | }
110 |
111 | - (void)applicationDidEnterBackground:(UIApplication *)application {
112 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
113 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
114 | }
115 |
116 | - (void)applicationWillEnterForeground:(UIApplication *)application {
117 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
118 | }
119 |
120 | - (void)applicationDidBecomeActive:(UIApplication *)application {
121 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
122 | }
123 |
124 | - (void)applicationWillTerminate:(UIApplication *)application {
125 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
126 | }
127 |
128 | @end
129 |
--------------------------------------------------------------------------------
/DNSTest.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 6D0CE2581B32A4C00034FD5B /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D0CE2571B32A4C00034FD5B /* main.m */; };
11 | 6D0CE25B1B32A4C00034FD5B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D0CE25A1B32A4C00034FD5B /* AppDelegate.m */; };
12 | 6D0CE25E1B32A4C00034FD5B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D0CE25D1B32A4C00034FD5B /* ViewController.m */; };
13 | 6D0CE2611B32A4C00034FD5B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6D0CE25F1B32A4C00034FD5B /* Main.storyboard */; };
14 | 6D0CE2631B32A4C00034FD5B /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6D0CE2621B32A4C00034FD5B /* Images.xcassets */; };
15 | 6D0CE2661B32A4C00034FD5B /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6D0CE2641B32A4C00034FD5B /* LaunchScreen.xib */; };
16 | 6D0CE2721B32A4C00034FD5B /* DNSTestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D0CE2711B32A4C00034FD5B /* DNSTestTests.m */; };
17 | 6D0CE27C1B32A56B0034FD5B /* libresolv.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D0CE27B1B32A56B0034FD5B /* libresolv.dylib */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXContainerItemProxy section */
21 | 6D0CE26C1B32A4C00034FD5B /* PBXContainerItemProxy */ = {
22 | isa = PBXContainerItemProxy;
23 | containerPortal = 6D0CE24A1B32A4C00034FD5B /* Project object */;
24 | proxyType = 1;
25 | remoteGlobalIDString = 6D0CE2511B32A4C00034FD5B;
26 | remoteInfo = DNSTest;
27 | };
28 | /* End PBXContainerItemProxy section */
29 |
30 | /* Begin PBXFileReference section */
31 | 6D0CE2521B32A4C00034FD5B /* DNSTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DNSTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
32 | 6D0CE2561B32A4C00034FD5B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
33 | 6D0CE2571B32A4C00034FD5B /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
34 | 6D0CE2591B32A4C00034FD5B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
35 | 6D0CE25A1B32A4C00034FD5B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
36 | 6D0CE25C1B32A4C00034FD5B /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
37 | 6D0CE25D1B32A4C00034FD5B /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
38 | 6D0CE2601B32A4C00034FD5B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
39 | 6D0CE2621B32A4C00034FD5B /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
40 | 6D0CE2651B32A4C00034FD5B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
41 | 6D0CE26B1B32A4C00034FD5B /* DNSTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DNSTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
42 | 6D0CE2701B32A4C00034FD5B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
43 | 6D0CE2711B32A4C00034FD5B /* DNSTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DNSTestTests.m; sourceTree = ""; };
44 | 6D0CE27B1B32A56B0034FD5B /* libresolv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libresolv.dylib; path = usr/lib/libresolv.dylib; sourceTree = SDKROOT; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 6D0CE24F1B32A4C00034FD5B /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | 6D0CE27C1B32A56B0034FD5B /* libresolv.dylib in Frameworks */,
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | 6D0CE2681B32A4C00034FD5B /* Frameworks */ = {
57 | isa = PBXFrameworksBuildPhase;
58 | buildActionMask = 2147483647;
59 | files = (
60 | );
61 | runOnlyForDeploymentPostprocessing = 0;
62 | };
63 | /* End PBXFrameworksBuildPhase section */
64 |
65 | /* Begin PBXGroup section */
66 | 6D0CE2491B32A4C00034FD5B = {
67 | isa = PBXGroup;
68 | children = (
69 | 6D0CE27B1B32A56B0034FD5B /* libresolv.dylib */,
70 | 6D0CE2541B32A4C00034FD5B /* DNSTest */,
71 | 6D0CE26E1B32A4C00034FD5B /* DNSTestTests */,
72 | 6D0CE2531B32A4C00034FD5B /* Products */,
73 | );
74 | sourceTree = "";
75 | };
76 | 6D0CE2531B32A4C00034FD5B /* Products */ = {
77 | isa = PBXGroup;
78 | children = (
79 | 6D0CE2521B32A4C00034FD5B /* DNSTest.app */,
80 | 6D0CE26B1B32A4C00034FD5B /* DNSTestTests.xctest */,
81 | );
82 | name = Products;
83 | sourceTree = "";
84 | };
85 | 6D0CE2541B32A4C00034FD5B /* DNSTest */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 6D0CE2591B32A4C00034FD5B /* AppDelegate.h */,
89 | 6D0CE25A1B32A4C00034FD5B /* AppDelegate.m */,
90 | 6D0CE25C1B32A4C00034FD5B /* ViewController.h */,
91 | 6D0CE25D1B32A4C00034FD5B /* ViewController.m */,
92 | 6D0CE25F1B32A4C00034FD5B /* Main.storyboard */,
93 | 6D0CE2621B32A4C00034FD5B /* Images.xcassets */,
94 | 6D0CE2641B32A4C00034FD5B /* LaunchScreen.xib */,
95 | 6D0CE2551B32A4C00034FD5B /* Supporting Files */,
96 | );
97 | path = DNSTest;
98 | sourceTree = "";
99 | };
100 | 6D0CE2551B32A4C00034FD5B /* Supporting Files */ = {
101 | isa = PBXGroup;
102 | children = (
103 | 6D0CE2561B32A4C00034FD5B /* Info.plist */,
104 | 6D0CE2571B32A4C00034FD5B /* main.m */,
105 | );
106 | name = "Supporting Files";
107 | sourceTree = "";
108 | };
109 | 6D0CE26E1B32A4C00034FD5B /* DNSTestTests */ = {
110 | isa = PBXGroup;
111 | children = (
112 | 6D0CE2711B32A4C00034FD5B /* DNSTestTests.m */,
113 | 6D0CE26F1B32A4C00034FD5B /* Supporting Files */,
114 | );
115 | path = DNSTestTests;
116 | sourceTree = "";
117 | };
118 | 6D0CE26F1B32A4C00034FD5B /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 6D0CE2701B32A4C00034FD5B /* Info.plist */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | /* End PBXGroup section */
127 |
128 | /* Begin PBXNativeTarget section */
129 | 6D0CE2511B32A4C00034FD5B /* DNSTest */ = {
130 | isa = PBXNativeTarget;
131 | buildConfigurationList = 6D0CE2751B32A4C00034FD5B /* Build configuration list for PBXNativeTarget "DNSTest" */;
132 | buildPhases = (
133 | 6D0CE24E1B32A4C00034FD5B /* Sources */,
134 | 6D0CE24F1B32A4C00034FD5B /* Frameworks */,
135 | 6D0CE2501B32A4C00034FD5B /* Resources */,
136 | );
137 | buildRules = (
138 | );
139 | dependencies = (
140 | );
141 | name = DNSTest;
142 | productName = DNSTest;
143 | productReference = 6D0CE2521B32A4C00034FD5B /* DNSTest.app */;
144 | productType = "com.apple.product-type.application";
145 | };
146 | 6D0CE26A1B32A4C00034FD5B /* DNSTestTests */ = {
147 | isa = PBXNativeTarget;
148 | buildConfigurationList = 6D0CE2781B32A4C00034FD5B /* Build configuration list for PBXNativeTarget "DNSTestTests" */;
149 | buildPhases = (
150 | 6D0CE2671B32A4C00034FD5B /* Sources */,
151 | 6D0CE2681B32A4C00034FD5B /* Frameworks */,
152 | 6D0CE2691B32A4C00034FD5B /* Resources */,
153 | );
154 | buildRules = (
155 | );
156 | dependencies = (
157 | 6D0CE26D1B32A4C00034FD5B /* PBXTargetDependency */,
158 | );
159 | name = DNSTestTests;
160 | productName = DNSTestTests;
161 | productReference = 6D0CE26B1B32A4C00034FD5B /* DNSTestTests.xctest */;
162 | productType = "com.apple.product-type.bundle.unit-test";
163 | };
164 | /* End PBXNativeTarget section */
165 |
166 | /* Begin PBXProject section */
167 | 6D0CE24A1B32A4C00034FD5B /* Project object */ = {
168 | isa = PBXProject;
169 | attributes = {
170 | LastUpgradeCheck = 0610;
171 | ORGANIZATIONNAME = lujb;
172 | TargetAttributes = {
173 | 6D0CE2511B32A4C00034FD5B = {
174 | CreatedOnToolsVersion = 6.1;
175 | };
176 | 6D0CE26A1B32A4C00034FD5B = {
177 | CreatedOnToolsVersion = 6.1;
178 | TestTargetID = 6D0CE2511B32A4C00034FD5B;
179 | };
180 | };
181 | };
182 | buildConfigurationList = 6D0CE24D1B32A4C00034FD5B /* Build configuration list for PBXProject "DNSTest" */;
183 | compatibilityVersion = "Xcode 3.2";
184 | developmentRegion = English;
185 | hasScannedForEncodings = 0;
186 | knownRegions = (
187 | en,
188 | Base,
189 | );
190 | mainGroup = 6D0CE2491B32A4C00034FD5B;
191 | productRefGroup = 6D0CE2531B32A4C00034FD5B /* Products */;
192 | projectDirPath = "";
193 | projectRoot = "";
194 | targets = (
195 | 6D0CE2511B32A4C00034FD5B /* DNSTest */,
196 | 6D0CE26A1B32A4C00034FD5B /* DNSTestTests */,
197 | );
198 | };
199 | /* End PBXProject section */
200 |
201 | /* Begin PBXResourcesBuildPhase section */
202 | 6D0CE2501B32A4C00034FD5B /* Resources */ = {
203 | isa = PBXResourcesBuildPhase;
204 | buildActionMask = 2147483647;
205 | files = (
206 | 6D0CE2611B32A4C00034FD5B /* Main.storyboard in Resources */,
207 | 6D0CE2661B32A4C00034FD5B /* LaunchScreen.xib in Resources */,
208 | 6D0CE2631B32A4C00034FD5B /* Images.xcassets in Resources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | 6D0CE2691B32A4C00034FD5B /* Resources */ = {
213 | isa = PBXResourcesBuildPhase;
214 | buildActionMask = 2147483647;
215 | files = (
216 | );
217 | runOnlyForDeploymentPostprocessing = 0;
218 | };
219 | /* End PBXResourcesBuildPhase section */
220 |
221 | /* Begin PBXSourcesBuildPhase section */
222 | 6D0CE24E1B32A4C00034FD5B /* Sources */ = {
223 | isa = PBXSourcesBuildPhase;
224 | buildActionMask = 2147483647;
225 | files = (
226 | 6D0CE25E1B32A4C00034FD5B /* ViewController.m in Sources */,
227 | 6D0CE25B1B32A4C00034FD5B /* AppDelegate.m in Sources */,
228 | 6D0CE2581B32A4C00034FD5B /* main.m in Sources */,
229 | );
230 | runOnlyForDeploymentPostprocessing = 0;
231 | };
232 | 6D0CE2671B32A4C00034FD5B /* Sources */ = {
233 | isa = PBXSourcesBuildPhase;
234 | buildActionMask = 2147483647;
235 | files = (
236 | 6D0CE2721B32A4C00034FD5B /* DNSTestTests.m in Sources */,
237 | );
238 | runOnlyForDeploymentPostprocessing = 0;
239 | };
240 | /* End PBXSourcesBuildPhase section */
241 |
242 | /* Begin PBXTargetDependency section */
243 | 6D0CE26D1B32A4C00034FD5B /* PBXTargetDependency */ = {
244 | isa = PBXTargetDependency;
245 | target = 6D0CE2511B32A4C00034FD5B /* DNSTest */;
246 | targetProxy = 6D0CE26C1B32A4C00034FD5B /* PBXContainerItemProxy */;
247 | };
248 | /* End PBXTargetDependency section */
249 |
250 | /* Begin PBXVariantGroup section */
251 | 6D0CE25F1B32A4C00034FD5B /* Main.storyboard */ = {
252 | isa = PBXVariantGroup;
253 | children = (
254 | 6D0CE2601B32A4C00034FD5B /* Base */,
255 | );
256 | name = Main.storyboard;
257 | sourceTree = "";
258 | };
259 | 6D0CE2641B32A4C00034FD5B /* LaunchScreen.xib */ = {
260 | isa = PBXVariantGroup;
261 | children = (
262 | 6D0CE2651B32A4C00034FD5B /* Base */,
263 | );
264 | name = LaunchScreen.xib;
265 | sourceTree = "";
266 | };
267 | /* End PBXVariantGroup section */
268 |
269 | /* Begin XCBuildConfiguration section */
270 | 6D0CE2731B32A4C00034FD5B /* Debug */ = {
271 | isa = XCBuildConfiguration;
272 | buildSettings = {
273 | ALWAYS_SEARCH_USER_PATHS = NO;
274 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
275 | CLANG_CXX_LIBRARY = "libc++";
276 | CLANG_ENABLE_MODULES = YES;
277 | CLANG_ENABLE_OBJC_ARC = YES;
278 | CLANG_WARN_BOOL_CONVERSION = YES;
279 | CLANG_WARN_CONSTANT_CONVERSION = YES;
280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
281 | CLANG_WARN_EMPTY_BODY = YES;
282 | CLANG_WARN_ENUM_CONVERSION = YES;
283 | CLANG_WARN_INT_CONVERSION = YES;
284 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
285 | CLANG_WARN_UNREACHABLE_CODE = YES;
286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
288 | COPY_PHASE_STRIP = NO;
289 | ENABLE_STRICT_OBJC_MSGSEND = YES;
290 | GCC_C_LANGUAGE_STANDARD = gnu99;
291 | GCC_DYNAMIC_NO_PIC = NO;
292 | GCC_OPTIMIZATION_LEVEL = 0;
293 | GCC_PREPROCESSOR_DEFINITIONS = (
294 | "DEBUG=1",
295 | "$(inherited)",
296 | );
297 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
300 | GCC_WARN_UNDECLARED_SELECTOR = YES;
301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
302 | GCC_WARN_UNUSED_FUNCTION = YES;
303 | GCC_WARN_UNUSED_VARIABLE = YES;
304 | IPHONEOS_DEPLOYMENT_TARGET = 8.1;
305 | MTL_ENABLE_DEBUG_INFO = YES;
306 | ONLY_ACTIVE_ARCH = YES;
307 | SDKROOT = iphoneos;
308 | };
309 | name = Debug;
310 | };
311 | 6D0CE2741B32A4C00034FD5B /* Release */ = {
312 | isa = XCBuildConfiguration;
313 | buildSettings = {
314 | ALWAYS_SEARCH_USER_PATHS = NO;
315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
316 | CLANG_CXX_LIBRARY = "libc++";
317 | CLANG_ENABLE_MODULES = YES;
318 | CLANG_ENABLE_OBJC_ARC = YES;
319 | CLANG_WARN_BOOL_CONVERSION = YES;
320 | CLANG_WARN_CONSTANT_CONVERSION = YES;
321 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
322 | CLANG_WARN_EMPTY_BODY = YES;
323 | CLANG_WARN_ENUM_CONVERSION = YES;
324 | CLANG_WARN_INT_CONVERSION = YES;
325 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
326 | CLANG_WARN_UNREACHABLE_CODE = YES;
327 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
328 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
329 | COPY_PHASE_STRIP = YES;
330 | ENABLE_NS_ASSERTIONS = NO;
331 | ENABLE_STRICT_OBJC_MSGSEND = YES;
332 | GCC_C_LANGUAGE_STANDARD = gnu99;
333 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
334 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
335 | GCC_WARN_UNDECLARED_SELECTOR = YES;
336 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
337 | GCC_WARN_UNUSED_FUNCTION = YES;
338 | GCC_WARN_UNUSED_VARIABLE = YES;
339 | IPHONEOS_DEPLOYMENT_TARGET = 8.1;
340 | MTL_ENABLE_DEBUG_INFO = NO;
341 | SDKROOT = iphoneos;
342 | VALIDATE_PRODUCT = YES;
343 | };
344 | name = Release;
345 | };
346 | 6D0CE2761B32A4C00034FD5B /* Debug */ = {
347 | isa = XCBuildConfiguration;
348 | buildSettings = {
349 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350 | INFOPLIST_FILE = DNSTest/Info.plist;
351 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
352 | LIBRARY_SEARCH_PATHS = (
353 | "$(inherited)",
354 | "$(SDKROOT)/usr/lib/system",
355 | );
356 | PRODUCT_NAME = "$(TARGET_NAME)";
357 | };
358 | name = Debug;
359 | };
360 | 6D0CE2771B32A4C00034FD5B /* Release */ = {
361 | isa = XCBuildConfiguration;
362 | buildSettings = {
363 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
364 | INFOPLIST_FILE = DNSTest/Info.plist;
365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
366 | LIBRARY_SEARCH_PATHS = (
367 | "$(inherited)",
368 | "$(SDKROOT)/usr/lib/system",
369 | );
370 | PRODUCT_NAME = "$(TARGET_NAME)";
371 | };
372 | name = Release;
373 | };
374 | 6D0CE2791B32A4C00034FD5B /* Debug */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | BUNDLE_LOADER = "$(TEST_HOST)";
378 | FRAMEWORK_SEARCH_PATHS = (
379 | "$(SDKROOT)/Developer/Library/Frameworks",
380 | "$(inherited)",
381 | );
382 | GCC_PREPROCESSOR_DEFINITIONS = (
383 | "DEBUG=1",
384 | "$(inherited)",
385 | );
386 | INFOPLIST_FILE = DNSTestTests/Info.plist;
387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
388 | PRODUCT_NAME = "$(TARGET_NAME)";
389 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DNSTest.app/DNSTest";
390 | };
391 | name = Debug;
392 | };
393 | 6D0CE27A1B32A4C00034FD5B /* Release */ = {
394 | isa = XCBuildConfiguration;
395 | buildSettings = {
396 | BUNDLE_LOADER = "$(TEST_HOST)";
397 | FRAMEWORK_SEARCH_PATHS = (
398 | "$(SDKROOT)/Developer/Library/Frameworks",
399 | "$(inherited)",
400 | );
401 | INFOPLIST_FILE = DNSTestTests/Info.plist;
402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
403 | PRODUCT_NAME = "$(TARGET_NAME)";
404 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/DNSTest.app/DNSTest";
405 | };
406 | name = Release;
407 | };
408 | /* End XCBuildConfiguration section */
409 |
410 | /* Begin XCConfigurationList section */
411 | 6D0CE24D1B32A4C00034FD5B /* Build configuration list for PBXProject "DNSTest" */ = {
412 | isa = XCConfigurationList;
413 | buildConfigurations = (
414 | 6D0CE2731B32A4C00034FD5B /* Debug */,
415 | 6D0CE2741B32A4C00034FD5B /* Release */,
416 | );
417 | defaultConfigurationIsVisible = 0;
418 | defaultConfigurationName = Release;
419 | };
420 | 6D0CE2751B32A4C00034FD5B /* Build configuration list for PBXNativeTarget "DNSTest" */ = {
421 | isa = XCConfigurationList;
422 | buildConfigurations = (
423 | 6D0CE2761B32A4C00034FD5B /* Debug */,
424 | 6D0CE2771B32A4C00034FD5B /* Release */,
425 | );
426 | defaultConfigurationIsVisible = 0;
427 | };
428 | 6D0CE2781B32A4C00034FD5B /* Build configuration list for PBXNativeTarget "DNSTestTests" */ = {
429 | isa = XCConfigurationList;
430 | buildConfigurations = (
431 | 6D0CE2791B32A4C00034FD5B /* Debug */,
432 | 6D0CE27A1B32A4C00034FD5B /* Release */,
433 | );
434 | defaultConfigurationIsVisible = 0;
435 | };
436 | /* End XCConfigurationList section */
437 | };
438 | rootObject = 6D0CE24A1B32A4C00034FD5B /* Project object */;
439 | }
440 |
--------------------------------------------------------------------------------