Comparing strings using == is dodgy at best, and clang gives complaints for the code in 3600dns.c like:
3600dns.c:510:12: warning: result of comparison against a string literal is
unspecified (use strncmp instead) [-Wstring-compare]
if (type == "IP") {
^ ~~~~
3600dns.c:519:12: warning: result of comparison against a string literal is
unspecified (use strncmp instead) [-Wstring-compare]
if (type == "CNAME") {
^ ~~~~~~~
3600dns.c:524:12: warning: result of comparison against a string literal is
unspecified (use strncmp instead) [-Wstring-compare]
if (type == "MX") {
^ ~~~~
3600dns.c:532:12: warning: result of comparison against a string literal is
unspecified (use strncmp instead) [-Wstring-compare]
if (type == "NS") {
Comparing strings using
==
is dodgy at best, and clang gives complaints for the code in 3600dns.c like: