final
parent
a55c87e016
commit
ac5449f63f
|
@ -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)
|
||||
|
|
37
README.md
37
README.md
|
@ -1,3 +1,38 @@
|
|||
# Insane_DNS
|
||||
|
||||
4P14 Lab Ex 2
|
||||
## 4P14 Lab Exercise 2
|
||||
|
||||
- Brett Terpstra 6920201
|
||||
- Michael Boulos 6973523
|
||||
- Adrian Pinu 6970677
|
||||
|
||||
### Building And Running
|
||||
Linux is required. <br>
|
||||
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`<br>
|
||||
I would've basically implemented a full DNS server if it would've gotten me anything :3 <br>
|
||||
|
||||
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. <br>
|
||||
`dig @localhost -p 5555 zombo.com ANY` <br>
|
||||
`dig @localhost -p 5555 zombo.com` <br>
|
||||
`dig @localhost -p 5555 tpgc.me` <br>
|
||||
`dig @localhost -p 5555 google.ca` <br>
|
||||
`dig @localhost -p 5555 google.ca ANY` <br>
|
||||
`dig @localhost -p 5555 tpgc.me ANY` <br>
|
||||
`dig @localhost -p 5555 en.wikipedia.org` <br>
|
||||
`dig @localhost -p 5555 en.wikipedia.org ANY` <br>
|
||||
|
|
Loading…
Reference in New Issue