├── README.md
├── hosts.txt
├── Makefile
├── LICENSE.txt
├── dns.h
├── fernmelder.cc
├── net-headers.h
└── dns.cc
/README.md:
--------------------------------------------------------------------------------
1 | fernmelder
2 | ==========
3 |
4 | async mass DNS resolver
5 |
--------------------------------------------------------------------------------
/hosts.txt:
--------------------------------------------------------------------------------
1 | google.de
2 | google.com
3 | heise.de
4 | www.ccc.de
5 | nsa.gov
6 | www.nsa.gov
7 | nxdomain
8 |
9 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | CXX=c++
2 | CFLAGS=-Wall -O2 -c -std=c++11 -pedantic
3 |
4 | all: fernmelder
5 |
6 | fernmelder: dns.o fm.o
7 | $(CXX) dns.o fm.o -lresolv -o fernmelder
8 |
9 | dns.o: dns.cc dns.h
10 | $(CXX) $(CFLAGS) dns.cc
11 |
12 | fm.o: fernmelder.cc
13 | $(CXX) $(CFLAGS) fernmelder.cc -o fm.o
14 |
15 | clean:
16 | rm -rf *.o
17 |
18 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of fernmelder.
3 | *
4 | * (C) 2014 by Sebastian Krahmer, sebastian [dot] krahmer [at] gmail [dot] com
5 | *
6 | * fernmelder is free software: you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License as published by
8 | * the Free Software Foundation, either version 3 of the License, or
9 | * (at your option) any later version.
10 | *
11 | * fernmelder is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with fernmelder. If not, see .
18 | */
19 |
20 |
--------------------------------------------------------------------------------
/dns.h:
--------------------------------------------------------------------------------
1 | /*
2 | * This file is part of fernmelder.
3 | *
4 | * (C) 2014 by Sebastian Krahmer, sebastian [dot] krahmer [at] gmail [dot] com
5 | *
6 | * fernmelder is free software: you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License as published by
8 | * the Free Software Foundation, either version 3 of the License, or
9 | * (at your option) any later version.
10 | *
11 | * fernmelder is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with fernmelder. If not, see .
18 | */
19 |
20 | #ifndef __dns_h__
21 | #define __dns_h__
22 |
23 | #include
24 | #include
25 | #include
26 | #include
27 | #include
28 | #include
29 | #include