dns-type.h revision c84e853934cf99a737ef7d3f4ee5d61a1a2a5696
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Zbigniew Jędrzejewski-Szmek
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#pragma once
#include "macro.h"
const char *dns_type_to_string(int type);
int dns_type_from_string(const char *s);
bool dns_type_is_pseudo(uint16_t n);
/* DNS record types, taken from
*/
enum {
/* Normal records */
DNS_TYPE_A = 0x01,
DNS_TYPE_OPT, /* EDNS0 option */
DNS_TYPE_HIP = 0x37,
DNS_TYPE_SPF = 0x63,
DNS_TYPE_TKEY = 0xF9,
DNS_TYPE_TA = 0x8000,
_DNS_TYPE_INVALID = -1
};