diff --git a/CMakeLists.txt b/CMakeLists.txt index 50059f6..627b5f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,9 +36,8 @@ if(CMAKE_THREAD_LIBS_INIT) target_link_libraries(insane_dns "${CMAKE_THREAD_LIBS_INIT}") endif() - -target_compile_options(insane_dns PRIVATE -Wall -Werror -Wpedantic -Werror=return-local-addr -Wno-comment -Wno-format) -target_link_options(insane_dns PRIVATE -Wall -Werror -Wpedantic -Werror=return-local-addr -Wno-comment -Wno-format) +#target_compile_options(insane_dns PRIVATE -Wall -Werror -Wpedantic -Werror=return-local-addr -Wno-comment -Wno-format) +#target_link_options(insane_dns PRIVATE -Wall -Werror -Wpedantic -Werror=return-local-addr -Wno-comment -Wno-format) if (${ENABLE_ADDRSAN} MATCHES ON) target_compile_options(${PROJECT_NAME} PRIVATE -fsanitize=address) diff --git a/README.md b/README.md index 6d07072..26095b8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,38 @@ # Insane_DNS -4P14 Lab Ex 2 \ No newline at end of file +## 4P14 Lab Exercise 2 + +- Brett Terpstra 6920201 +- Michael Boulos 6973523 +- Adrian Pinu 6970677 + +### Building And Running +Linux is required.
+Compiler support: GCC 8.5+ +(This program compiles and runs on sandcastle) +``` +git clone https://git.tpgc.me/tri11paragon/Insane_DNS +cd Insane_DNS +mkdir build && cd build +cmake ../ +make -j 16 +./insane_dns +``` +All options are set at compile time in the main.cpp file. + +### Features +I added TCP support alongside UDP to natively support `dig ANY`
+I would've basically implemented a full DNS server if it would've gotten me anything :3
+ +There are no compiler warnings or runtime errors on GCC 12 and only a single warning on GCC 8.5 + +### Testing +All the following have been tested and confirmed working.
+`dig @localhost -p 5555 zombo.com ANY`
+`dig @localhost -p 5555 zombo.com`
+`dig @localhost -p 5555 tpgc.me`
+`dig @localhost -p 5555 google.ca`
+`dig @localhost -p 5555 google.ca ANY`
+`dig @localhost -p 5555 tpgc.me ANY`
+`dig @localhost -p 5555 en.wikipedia.org`
+`dig @localhost -p 5555 en.wikipedia.org ANY`