server port warning message

This commit is contained in:
Erik Ekman 2006-11-12 22:43:03 +00:00
parent 7f7ed5ae43
commit 6fc460ded6

View file

@ -258,6 +258,10 @@ main(int argc, char **argv)
break; break;
case 'p': case 'p':
port = atoi(optarg); port = atoi(optarg);
if (port) {
printf("ALERT! Other dns servers expect you to run on port 53.\n");
printf("You must manually forward port 53 to port %d for things to work.\n", port);
}
break; break;
default: default:
usage(); usage();