summaryrefslogtreecommitdiff
path: root/src/resolve
Commit message (Collapse)AuthorAge
* resolved: avoid possible dereference of null pointerThomas Hindoe Paaboel Andersen2014-08-03
| | | | | In dns_scope_make_reply_packet the structs q, answer, and soa can be null. We should check for null before reading their fields.
* resolved: remove unused variablesThomas Hindoe Paaboel Andersen2014-08-03
|
* resolved: always drop multicast membership before adding oneLennart Poettering2014-08-01
| | | | This is apparently necessary on some devices, such as veth.
* resolved: IPV6_UNICAST_IF may fail if we already are bound to a device, like ↵Lennart Poettering2014-08-01
| | | | we are for link-local addresses
* resolved: flush cache each time we change to a different DNS serverLennart Poettering2014-08-01
|
* resolved: read the system /etc/resolv.conf unless we wrote it ourselvesLennart Poettering2014-08-01
| | | | | This way we integrate nicely with foreign network management stacks, such as NM.
* resolved: rename resolved.h to resolved-manager.hLennart Poettering2014-08-01
| | | | | After all it pretty much exlcusively containers definitions about the "Manager" object, hence let's call this the most obvious way.
* resolved: beef up DNS server configuration logicLennart Poettering2014-08-01
| | | | | | | | | | | | | | | | We now maintain two lists of DNS servers: system servers and fallback servers. system servers are used in combination with any per-link servers. fallback servers are only used if there are no system servers or per-link servers configured. The system server list is supposed to be populated from a foreign tool's /etc/resolv.conf (not implemented yet). Also adds a configuration switch for LLMNR, that allows configuring whether LLMNR shall be used simply for resolving or also for responding.
* resolved: don't bother caching negative RRs when the SOA TTL is 0 anywayLennart Poettering2014-08-01
|
* resolved: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC when aging caches ↵Lennart Poettering2014-08-01
| | | | | | and timeing out transactions That way the cache doens't get confused when the system is suspended.
* resolved: fix negative caching of IDNA domainsLennart Poettering2014-08-01
|
* resolved: handle IDNA domainsLennart Poettering2014-08-01
| | | | | | | | Make sure we format UTF-8 labels as IDNA when writing them to DNS packets, and as native UTF-8 when writing them to mDNS or LLMNR packets. When comparing or processing labels always consider native UTF-8 and IDNA formats equivalent.
* resolved: fix serialization of LOC records, check correctnessZbigniew Jędrzejewski-Szmek2014-07-31
|
* hostnamed: watch system hostname changes and update LLMNR RRs accordinglyLennart Poettering2014-07-31
|
* resolved: fix deserialization of UTF8 host namesLennart Poettering2014-07-31
|
* resolved: accept UTF-8 hostnames from bus clientsLennart Poettering2014-07-31
|
* resolved: various fixes regarding encoding of UTF8 characters in DNS RRsLennart Poettering2014-07-31
|
* resolved: properly compare RRs we cannot parseLennart Poettering2014-07-31
|
* resolved: properly process SSHFP RRsLennart Poettering2014-07-31
|
* resolved: properly process SRV recordsLennart Poettering2014-07-31
|
* resolved: provide properly named way to access SPF data in RRsLennart Poettering2014-07-31
|
* resolved: make sure we always initialize r when parsing TXT recordsLennart Poettering2014-07-31
|
* resolved: properly process DNAME RRsLennart Poettering2014-07-31
|
* resolved: implement LLMNR uniqueness verificationLennart Poettering2014-07-31
|
* resolved: fix multi-record packets with TXTsZbigniew Jędrzejewski-Szmek2014-07-31
|
* resolved: LOC recordsZbigniew Jędrzejewski-Szmek2014-07-31
| | | | | | | | | | LOC records have a version field. So far only version 0 has been published, but if a record with a different version was encountered, our only recourse is to treat it as an unknown type. This is implemented with the 'unparseable' flag, which causes the serialization/deserialization and printing function to cause the record as a blob. The flag can be used if other packet types cannot be parsed for whatever reason.
* resolved: SPF recordsZbigniew Jędrzejewski-Szmek2014-07-31
|
* resolved: TXT recordsZbigniew Jędrzejewski-Szmek2014-07-31
|
* resolved: MX recordsZbigniew Jędrzejewski-Szmek2014-07-31
|
* resolve-host: list types and classesZbigniew Jędrzejewski-Szmek2014-07-31
| | | | Also update systemctl to similar style.
* Properly report invalid quoted stringsZbigniew Jędrzejewski-Szmek2014-07-31
| | | | | | | | $ systemd-analyze verify trailing-g.service [./trailing-g.service:2] Trailing garbage, ignoring. trailing-g.service lacks ExecStart setting. Refusing. Error: org.freedesktop.systemd1.LoadFailed: Unit trailing-g.service failed to load: Invalid argument. Failed to create trailing-g.service/start: Invalid argument
* Reject invalid quoted stringsZbigniew Jędrzejewski-Szmek2014-07-31
| | | | | | | | | | | | | | | | | | | | | | String which ended in an unfinished quote were accepted, potentially with bad memory accesses. Reject anything which ends in a unfished quote, or contains non-whitespace characters right after the closing quote. _FOREACH_WORD now returns the invalid character in *state. But this return value is not checked anywhere yet. Also, make 'word' and 'state' variables const pointers, and rename 'w' to 'word' in various places. Things are easier to read if the same name is used consistently. mbiebl_> am I correct that something like this doesn't work mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-passwd "Unlock EncFS"' mbiebl_> systemd seems to strip of the quotes mbiebl_> systemctl status shows mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-password Unlock EncFS $RootDir $MountPoint mbiebl_> which is pretty weird
* resolved: when we got a successful DNS reply, then only wait for other ↵Lennart Poettering2014-07-30
| | | | transactions on the same scope, nowhere else
* resolved: properly set TTL in SOA recordsLennart Poettering2014-07-30
|
* resolved: don't attempt to order empty answer arrayLennart Poettering2014-07-30
|
* resolved: properly return start index when appending RR to packetLennart Poettering2014-07-30
|
* resolved: add API for resolving specific RRsLennart Poettering2014-07-30
|
* resolved: properly pass empty answers back to bus clientsLennart Poettering2014-07-30
|
* resolved: include SOA records in LLMNR replies for non-existing RRs to allow ↵Lennart Poettering2014-07-30
| | | | negative caching
* resolved: fix cname handlingLennart Poettering2014-07-30
|
* resolved: properly handle adding empty replies to cacheLennart Poettering2014-07-30
|
* resolved: never cache ANY lookupsLennart Poettering2014-07-30
|
* resolved: respond to ANY queries from our zoneLennart Poettering2014-07-30
|
* resolved: don't accept messages with ANY RRsLennart Poettering2014-07-30
|
* resolved: don't allow adding of ANY class/type RRs to local zonesLennart Poettering2014-07-30
|
* resolved: don't do llmnr on interfaces lacking multicastingLennart Poettering2014-07-30
|
* resolved: follow more closely the recommend timeouts and TTLs from the LLMNR ↵Lennart Poettering2014-07-30
| | | | spec
* resolved: only cache answer RRs, never additional or authoritative RRs of ↵Lennart Poettering2014-07-30
| | | | responses
* resolved: never attempt negative caching of SOA recordsLennart Poettering2014-07-30
|
* resolved: when answer A or AAAA questions, order responses by whether ↵Lennart Poettering2014-07-30
| | | | addresses are link-local or not