Add --disable-dns configure flag

Fix --disable-dns build case, and add to Travis-CI test run.