{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7","id":59792113,"html_url":"https://github.com/masterkorp/openvpn-update-resolv-conf/pull/7","diff_url":"https://github.com/masterkorp/openvpn-update-resolv-conf/pull/7.diff","patch_url":"https://github.com/masterkorp/openvpn-update-resolv-conf/pull/7.patch","issue_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/7","number":7,"state":"open","locked":false,"title":"Added script with systemd-networkd support","user":{"login":"WGH-","id":1099351,"avatar_url":"https://avatars.githubusercontent.com/u/1099351?v=3","gravatar_id":"","url":"https://api.github.com/users/WGH-","html_url":"https://github.com/WGH-","followers_url":"https://api.github.com/users/WGH-/followers","following_url":"https://api.github.com/users/WGH-/following{/other_user}","gists_url":"https://api.github.com/users/WGH-/gists{/gist_id}","starred_url":"https://api.github.com/users/WGH-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGH-/subscriptions","organizations_url":"https://api.github.com/users/WGH-/orgs","repos_url":"https://api.github.com/users/WGH-/repos","events_url":"https://api.github.com/users/WGH-/events{/privacy}","received_events_url":"https://api.github.com/users/WGH-/received_events","type":"User","site_admin":false},"body":"The trick is to create a [network configuration](https://www.freedesktop.org/software/systemd/man/systemd.network.html) file in volatile runtime network directory (`/run/systemd/network`) and then restart `systemd-networkd`, so it can reload global DNS settings.","created_at":"2016-02-18T12:32:57Z","updated_at":"2016-02-18T12:32:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7/commits","review_comments_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7/comments","review_comment_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/7/comments","statuses_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/statuses/8ec2ce4f8d2ca562f38c78672994975f6f2379e6","head":{"label":"WGH-:master","ref":"master","sha":"8ec2ce4f8d2ca562f38c78672994975f6f2379e6","user":{"login":"WGH-","id":1099351,"avatar_url":"https://avatars.githubusercontent.com/u/1099351?v=3","gravatar_id":"","url":"https://api.github.com/users/WGH-","html_url":"https://github.com/WGH-","followers_url":"https://api.github.com/users/WGH-/followers","following_url":"https://api.github.com/users/WGH-/following{/other_user}","gists_url":"https://api.github.com/users/WGH-/gists{/gist_id}","starred_url":"https://api.github.com/users/WGH-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGH-/subscriptions","organizations_url":"https://api.github.com/users/WGH-/orgs","repos_url":"https://api.github.com/users/WGH-/repos","events_url":"https://api.github.com/users/WGH-/events{/privacy}","received_events_url":"https://api.github.com/users/WGH-/received_events","type":"User","site_admin":false},"repo":{"id":52005512,"name":"openvpn-update-resolv-conf","full_name":"WGH-/openvpn-update-resolv-conf","owner":{"login":"WGH-","id":1099351,"avatar_url":"https://avatars.githubusercontent.com/u/1099351?v=3","gravatar_id":"","url":"https://api.github.com/users/WGH-","html_url":"https://github.com/WGH-","followers_url":"https://api.github.com/users/WGH-/followers","following_url":"https://api.github.com/users/WGH-/following{/other_user}","gists_url":"https://api.github.com/users/WGH-/gists{/gist_id}","starred_url":"https://api.github.com/users/WGH-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGH-/subscriptions","organizations_url":"https://api.github.com/users/WGH-/orgs","repos_url":"https://api.github.com/users/WGH-/repos","events_url":"https://api.github.com/users/WGH-/events{/privacy}","received_events_url":"https://api.github.com/users/WGH-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WGH-/openvpn-update-resolv-conf","description":"Script that updates DNS settings are pushed by the OpenVPN server","fork":true,"url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf","forks_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/forks","keys_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/teams","hooks_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/hooks","issue_events_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/issues/events{/number}","events_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/events","assignees_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/assignees{/user}","branches_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/branches{/branch}","tags_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/tags","blobs_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/git/refs{/sha}","trees_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/statuses/{sha}","languages_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/languages","stargazers_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/stargazers","contributors_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/contributors","subscribers_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/subscribers","subscription_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/subscription","commits_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/commits{/sha}","git_commits_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/git/commits{/sha}","comments_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/comments{/number}","issue_comment_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/issues/comments{/number}","contents_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/contents/{+path}","compare_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/merges","archive_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/downloads","issues_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/issues{/number}","pulls_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/pulls{/number}","milestones_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/milestones{/number}","notifications_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/labels{/name}","releases_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/releases{/id}","deployments_url":"https://api.github.com/repos/WGH-/openvpn-update-resolv-conf/deployments","created_at":"2016-02-18T12:24:58Z","updated_at":"2016-02-18T12:24:58Z","pushed_at":"2016-02-18T12:30:34Z","git_url":"git://github.com/WGH-/openvpn-update-resolv-conf.git","ssh_url":"git@github.com:WGH-/openvpn-update-resolv-conf.git","clone_url":"https://github.com/WGH-/openvpn-update-resolv-conf.git","svn_url":"https://github.com/WGH-/openvpn-update-resolv-conf","homepage":"","size":9,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"masterkorp:master","ref":"master","sha":"51fd5ef47cd41fe17e87dce6e8a222c1b0a51545","user":{"login":"masterkorp","id":223763,"avatar_url":"https://avatars.githubusercontent.com/u/223763?v=3","gravatar_id":"","url":"https://api.github.com/users/masterkorp","html_url":"https://github.com/masterkorp","followers_url":"https://api.github.com/users/masterkorp/followers","following_url":"https://api.github.com/users/masterkorp/following{/other_user}","gists_url":"https://api.github.com/users/masterkorp/gists{/gist_id}","starred_url":"https://api.github.com/users/masterkorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterkorp/subscriptions","organizations_url":"https://api.github.com/users/masterkorp/orgs","repos_url":"https://api.github.com/users/masterkorp/repos","events_url":"https://api.github.com/users/masterkorp/events{/privacy}","received_events_url":"https://api.github.com/users/masterkorp/received_events","type":"User","site_admin":false},"repo":{"id":21282581,"name":"openvpn-update-resolv-conf","full_name":"masterkorp/openvpn-update-resolv-conf","owner":{"login":"masterkorp","id":223763,"avatar_url":"https://avatars.githubusercontent.com/u/223763?v=3","gravatar_id":"","url":"https://api.github.com/users/masterkorp","html_url":"https://github.com/masterkorp","followers_url":"https://api.github.com/users/masterkorp/followers","following_url":"https://api.github.com/users/masterkorp/following{/other_user}","gists_url":"https://api.github.com/users/masterkorp/gists{/gist_id}","starred_url":"https://api.github.com/users/masterkorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterkorp/subscriptions","organizations_url":"https://api.github.com/users/masterkorp/orgs","repos_url":"https://api.github.com/users/masterkorp/repos","events_url":"https://api.github.com/users/masterkorp/events{/privacy}","received_events_url":"https://api.github.com/users/masterkorp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/masterkorp/openvpn-update-resolv-conf","description":"Script that updates DNS settings are pushed by the OpenVPN server","fork":false,"url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf","forks_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/forks","keys_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/teams","hooks_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/hooks","issue_events_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/events{/number}","events_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/events","assignees_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/assignees{/user}","branches_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/branches{/branch}","tags_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/tags","blobs_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/git/refs{/sha}","trees_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/statuses/{sha}","languages_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/languages","stargazers_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/stargazers","contributors_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/contributors","subscribers_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/subscribers","subscription_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/subscription","commits_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/commits{/sha}","git_commits_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/git/commits{/sha}","comments_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/comments{/number}","issue_comment_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/comments{/number}","contents_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/contents/{+path}","compare_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/merges","archive_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/downloads","issues_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues{/number}","pulls_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls{/number}","milestones_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/milestones{/number}","notifications_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/labels{/name}","releases_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/releases{/id}","deployments_url":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/deployments","created_at":"2014-06-27T16:52:30Z","updated_at":"2016-02-16T17:47:06Z","pushed_at":"2016-01-26T22:52:53Z","git_url":"git://github.com/masterkorp/openvpn-update-resolv-conf.git","ssh_url":"git@github.com:masterkorp/openvpn-update-resolv-conf.git","clone_url":"https://github.com/masterkorp/openvpn-update-resolv-conf.git","svn_url":"https://github.com/masterkorp/openvpn-update-resolv-conf","homepage":"","size":11,"stargazers_count":52,"watchers_count":52,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":1,"forks":13,"open_issues":1,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7"},"html":{"href":"https://github.com/masterkorp/openvpn-update-resolv-conf/pull/7"},"issue":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/7"},"comments":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/masterkorp/openvpn-update-resolv-conf/statuses/8ec2ce4f8d2ca562f38c78672994975f6f2379e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":71,"deletions":0,"changed_files":2}}