This basically implements nss-myhostname, but natively in systemd-resolved, so that the logic becomes available also for clients using the local DNS stub for resolution or the D-Bus or Varlink APIs.
16 lines
467 B
C
16 lines
467 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
#include "resolve-hook-util.h"
|
|
#include "dns-question.h"
|
|
|
|
void resolve_record_parameters_done(ResolveRecordParameters *p) {
|
|
assert(p);
|
|
|
|
dns_question_unref(p->question);
|
|
}
|
|
|
|
const sd_json_dispatch_field resolve_record_parameters_dispatch_table[] = {
|
|
{ "question", SD_JSON_VARIANT_ARRAY, dns_json_dispatch_question, offsetof(ResolveRecordParameters, question), SD_JSON_MANDATORY },
|
|
{}
|
|
};
|