resolved: make sure to normalize all domain names returned via the bus
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2016 13:17:53 +0000 (14:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Feb 2016 14:30:04 +0000 (15:30 +0100)
commitc77d26122a35a8555953bbe71e4a4ff664f3462c
treed10408c6aedad513ef6be0f020b8fb18835ca0fe
parent6d2353394fc33e923d1ab464c8f88df2a5105ffb
resolved: make sure to normalize all domain names returned via the bus

Most domain names we deal with are normalized anyway (since we read them that
way from DNS packets), but some might not (because they are synthesized from
unnormalized configuration or so), hence make sure to normalize all names
before passing them out to clients, to be fully deterministic.

Note that internally we are process normalized and non-normalized names the
same way, and while comparing them ignore the differences due to unnormalized
names. However, that internal implementation detail really shouldn't spill out
the clients, hence make sure to clean it all up.
src/resolve/resolved-bus.c