ObjFW  Check-in [474dc73a94]

Overview
Comment:ofdns: Default to AAAA and A, not ALL

ALL gets rejected by more and more DNS servers.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 474dc73a949b63653b512e0a15a5935a1aa42dcaa91ae49173a15aa0f2cff7e0
User & Date: js on 2024-08-19 19:29:17
Other Links: manifest | tags
Context
2024-08-19
21:42
forwardingTargetForSelector: for PowerPC 64/ELF v2 check-in: 119b311a62 user: js tags: trunk
19:29
ofdns: Default to AAAA and A, not ALL check-in: 474dc73a94 user: js tags: trunk
2024-08-18
15:26
Move PLATFORMS.md to wiki check-in: abe7e4f7f8 user: js tags: trunk
Changes

Modified utils/ofdns/OFDNS.m from [f6b9d1d659] to [3f7ee0f68b].

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
		    @"-c  --class= "
		    @"  The DNS class to query (defaults to IN)\n    "
		    @"-h  --help   "
		    @"  Show this help\n    "
		    @"-s  --server="
		    @"  The server to query\n    "
		    @"-t  --type=  "
		    @"  The record type to query (defaults to ALL, can be "
		    @"repeated)\n    "
		    @"    --tcp   "
		    @"  Force using TCP for the query")];
	}

	[OFApplication terminateWithStatus: status];
}

@implementation OFDNS







|
|
|







51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
		    @"-c  --class= "
		    @"  The DNS class to query (defaults to IN)\n    "
		    @"-h  --help   "
		    @"  Show this help\n    "
		    @"-s  --server="
		    @"  The server to query\n    "
		    @"-t  --type=  "
		    @"  The record type to query (defaults to AAAA and A,\n"
		    @"                   can be repeated)\n    "
		    @"    --tcp    "
		    @"  Force using TCP for the query")];
	}

	[OFApplication terminateWithStatus: status];
}

@implementation OFDNS
190
191
192
193
194
195
196
197
198


199
200
201
202
203
204
205
	resolver = [OFDNSResolver resolver];
	resolver.configReloadInterval = 0;
	resolver.forcesTCP = forceTCP;

	DNSClass = (DNSClassString != nil
	    ? OFDNSClassParseName(DNSClassString) : OFDNSClassIN);

	if (recordTypes.count == 0)
		[recordTypes addObject: @"ALL"];



	if (server != nil)
		resolver.nameServers = [OFArray arrayWithObject: server];

	for (OFString *domainName in remainingArguments) {
		for (OFString *recordTypeString in recordTypes) {
			OFDNSRecordType recordType =







|
|
>
>







190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
	resolver = [OFDNSResolver resolver];
	resolver.configReloadInterval = 0;
	resolver.forcesTCP = forceTCP;

	DNSClass = (DNSClassString != nil
	    ? OFDNSClassParseName(DNSClassString) : OFDNSClassIN);

	if (recordTypes.count == 0) {
		[recordTypes addObject: @"AAAA"];
		[recordTypes addObject: @"A"];
	}

	if (server != nil)
		resolver.nameServers = [OFArray arrayWithObject: server];

	for (OFString *domainName in remainingArguments) {
		for (OFString *recordTypeString in recordTypes) {
			OFDNSRecordType recordType =

Modified utils/ofdns/localization/de.json from [415733a1a9] to [2b22a2841d].

12
13
14
15
16
17
18
19

20
21
22
23
24
25
26
{
    usage: "Benutzung: %[prog] -[chst] domain1 [domain2 ...]",
    full_usage: [
        "Optionen:\n",
        "    -c  --class=   Die anzufragende DNS-Klasse (standardmäßig IN)\n",
        "    -h  --help     Diese Hilfe anzeigen\n",
        "    -s  --server=  Der abzufragende Server\n",
        "    -t  --type=    Der anzufragende Record-Typ (standardmäßig ALL,\n",

        "                   kann wiederholt werden)\n",
        "        --tcp      Benutzung von TCP erzwingen"
    ],
    long_option_requires_argument: [
        "%[prog]: Option --%[opt] benötigt ein Argument"
    ],
    option_requires_argument: "%[prog]: Option -%[opt] benötigt ein Argument",







|
>







12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
    usage: "Benutzung: %[prog] -[chst] domain1 [domain2 ...]",
    full_usage: [
        "Optionen:\n",
        "    -c  --class=   Die anzufragende DNS-Klasse (standardmäßig IN)\n",
        "    -h  --help     Diese Hilfe anzeigen\n",
        "    -s  --server=  Der abzufragende Server\n",
        "    -t  --type=    Der anzufragende Record-Typ (standardmäßig AAAA ",
	"und A,\n",
        "                   kann wiederholt werden)\n",
        "        --tcp      Benutzung von TCP erzwingen"
    ],
    long_option_requires_argument: [
        "%[prog]: Option --%[opt] benötigt ein Argument"
    ],
    option_requires_argument: "%[prog]: Option -%[opt] benötigt ein Argument",