{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/9053","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/9053/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/9053/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/9053/events","html_url":"https://github.com/systemd/systemd/issues/9053","id":325024792,"node_id":"MDU6SXNzdWUzMjUwMjQ3OTI=","number":9053,"title":"[resolved] When a full FQDN is set as hostname systemd-resolved will use the second-level domain as search domain although search domains are unset in /etc/systemd/resolved.conf","user":{"login":"shibumi","id":3833685,"node_id":"MDQ6VXNlcjM4MzM2ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/3833685?v=4","gravatar_id":"","url":"https://api.github.com/users/shibumi","html_url":"https://github.com/shibumi","followers_url":"https://api.github.com/users/shibumi/followers","following_url":"https://api.github.com/users/shibumi/following{/other_user}","gists_url":"https://api.github.com/users/shibumi/gists{/gist_id}","starred_url":"https://api.github.com/users/shibumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shibumi/subscriptions","organizations_url":"https://api.github.com/users/shibumi/orgs","repos_url":"https://api.github.com/users/shibumi/repos","events_url":"https://api.github.com/users/shibumi/events{/privacy}","received_events_url":"https://api.github.com/users/shibumi/received_events","type":"User","site_admin":false},"labels":[{"id":225812111,"node_id":"MDU6TGFiZWwyMjU4MTIxMTE=","url":"https://api.github.com/repos/systemd/systemd/labels/not-our-bug","name":"not-our-bug","color":"0052cc","default":false},{"id":219550421,"node_id":"MDU6TGFiZWwyMTk1NTA0MjE=","url":"https://api.github.com/repos/systemd/systemd/labels/resolve","name":"resolve","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-21T19:04:04Z","updated_at":"2018-07-24T16:13:30Z","closed_at":"2018-06-08T15:50:38Z","author_association":"CONTRIBUTOR","body":"**systemd version the issue has been seen with**\r\nsystemd 238\r\n+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid\r\n\r\n**Used distribution**\r\n > Arch Linux\r\n\r\n**Expected behaviour you didn't see**\r\n When I set `Domains=` in `/etc/systemd/resolved.conf` I should really have no search domains.\r\n\r\n**Unexpected behaviour you saw**\r\n When you set a FQDN as hostname via `hostnamectl set-hostname` `systemd-resolved` will use the second-level domain as search domain even when `Domains=` in `/etc/systemd/resolved.conf` is unset or empty. This can lead to weird behavior in other software when your domain has wildcards configured.\r\n\r\n**Steps to reproduce the problem**\r\nSet a valid FQDN with wildcards as hostname. For example:`motoko.nullday.de`. Then check your `/etc/systemd/resolved.conf` for any search domains and make sure that `Domains=` is unset or empty.\r\n\r\nThen start a DNS implementation like for example: `pythondns`  and try the following code:\r\n```\r\nfrom dns import resolver\r\nres = resolver.Resolver()\r\nres.query('0894ujf9042')\r\n```\r\nThe query will result in a valid answer due to an existing search domain for `nullday.de`.\r\n\r\n\r\n**Some Thoughts about this**\r\nI am not sure if this behaviour of `systemd-resolved` is a feature or a bug. At least I couldn't find any mention of this behavior in the man pages.\r\n\r\nI think that `Domains=` should definitely unset any search domains. Any Thoughts on this?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/407463894","html_url":"https://github.com/systemd/systemd/issues/9053#issuecomment-407463894","issue_url":"https://api.github.com/repos/systemd/systemd/issues/9053","id":407463894,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQ2Mzg5NA==","user":{"login":"dbenoy","id":2285331,"node_id":"MDQ6VXNlcjIyODUzMzE=","avatar_url":"https://avatars0.githubusercontent.com/u/2285331?v=4","gravatar_id":"","url":"https://api.github.com/users/dbenoy","html_url":"https://github.com/dbenoy","followers_url":"https://api.github.com/users/dbenoy/followers","following_url":"https://api.github.com/users/dbenoy/following{/other_user}","gists_url":"https://api.github.com/users/dbenoy/gists{/gist_id}","starred_url":"https://api.github.com/users/dbenoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbenoy/subscriptions","organizations_url":"https://api.github.com/users/dbenoy/orgs","repos_url":"https://api.github.com/users/dbenoy/repos","events_url":"https://api.github.com/users/dbenoy/events{/privacy}","received_events_url":"https://api.github.com/users/dbenoy/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T16:13:30Z","updated_at":"2018-07-24T16:13:30Z","author_association":"NONE","body":"Should I open a separate issue, or should we reopen this one?"}}
{"actor":{"display_login":"dbenoy"}}