summaryrefslogtreecommitdiff
path: root/src/resolve-host
Commit message (Collapse)AuthorAge
* cmdline: for new tools avoid introduce new negative switches, and properly ↵Lennart Poettering2014-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | align --help texts Negative switches are a bad un-normalized thing. We alerady have some, but we should try harder to avoid intrdoucing new ones. Hence, instead of adding two switches: --foobar --no-foobar Let's instead use the syntax --foobar --foobar=yes --foobar=no Where the first two are equivalent. The boolean argument is parsed following the usual rules. Change all new negative switches this way. This patch also properly aligns the --help table, so that single char switches always get a column separate of the long switches.
* resolved: allow passing on which protocol, family and interface to look ↵Lennart Poettering2014-08-14
| | | | | | something up Also, return on which protocol/family/interface we found something.
* resolve-host: properly align long arguments in help textLennart Poettering2014-08-04
|
* bus: always explicitly close bus from main programsLennart Poettering2014-08-04
| | | | | | | | | | | | | | Since b5eca3a2059f9399d1dc52cbcf9698674c4b1cf0 we don't attempt to GC busses anymore when unsent messages remain that keep their reference, when they otherwise are not referenced anymore. This means that if we explicitly want connections to go away, we need to close them. With this change we will no do so explicitly wherver we connect to the bus from a main program (and thus know when the bus connection should go away), or when we create a private bus connection, that really should go away after our use. This fixes connection leaks in the NSS and PAM modules.
* resolve-host: fix missed search&replaceZbigniew Jędrzejewski-Szmek2014-08-03
|
* resolve-host: make arg_type an intZbigniew Jędrzejewski-Szmek2014-08-03
| | | | We are using it also to store _DNS_TYPE_INVALID, so it should be signed.
* Unify parse_argv styleZbigniew Jędrzejewski-Szmek2014-08-03
| | | | | | | | | | | | | | | | getopt is usually good at printing out a nice error message when commandline options are invalid. It distinguishes between an unknown option and a known option with a missing arg. It is better to let it do its job and not use opterr=0 unless we actually want to suppress messages. So remove opterr=0 in the few places where it wasn't really useful. When an error in options is encountered, we should not print a lengthy help() and overwhelm the user, when we know precisely what is wrong with the commandline. In addition, since help() prints to stdout, it should not be used except when requested with -h or --help. Also, simplify things here and there.
* resolve-host: use correct format specifierThomas Hindoe Paaboel Andersen2014-08-03
|
* resolve-host: list types and classesZbigniew Jędrzejewski-Szmek2014-07-31
| | | | Also update systemctl to similar style.
* resolved: add API for resolving specific RRsLennart Poettering2014-07-30
|
* resolve-host: add reverse lookup supportLennart Poettering2014-07-30
|
* resolve-host: use the usual log message when encountering a dbus parse failureLennart Poettering2014-07-30
|
* resolved: add tool to query resolvedZbigniew Jędrzejewski-Szmek2014-07-30