{"id":134,"date":"2018-10-21T21:38:18","date_gmt":"2018-10-21T21:38:18","guid":{"rendered":"https:\/\/nillsf.wordpress.com\/?p=134"},"modified":"2018-10-21T21:38:18","modified_gmt":"2018-10-21T21:38:18","slug":"ubuntu-18-04-manually-set-dns-server-to-use","status":"publish","type":"post","link":"https:\/\/blog.nillsf.com\/index.php\/2018\/10\/21\/ubuntu-18-04-manually-set-dns-server-to-use\/","title":{"rendered":"Ubuntu 18.04 Manually set DNS server to use"},"content":{"rendered":"<p>This is going to be a short post explaining how to manually set a DNS server in Ubuntu 18.04.<\/p>\n<pre>#Edit the following configuration file:\nsudo vi <strong>\/etc\/systemd\/resolved.conf\n<\/strong>#Add the DNS server you want to use:\n[Resolve]\nDNS=192.168.48.44\n#Write changes and close file (:wq!)\n#Restart local DNS service\nsudo systemctl restart systemd-resolved.service\n#Query your local DNS server\ndig server-vm.example.com\n<\/pre>\n<pre>...\n;; QUESTION SECTION:\n;server-vm.example.com.\t\tIN\tA\n;; ANSWER SECTION:\nserver-vm.example.com.\t6856\tIN\tA\t192.168.48.44\n...<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is going to be a short post explaining how to manually set a DNS server in Ubuntu 18.04. #Edit the following configuration file: sudo vi \/etc\/systemd\/resolved.conf #Add the DNS server you want to use: [Resolve] DNS=192.168.48.44 #Write changes and close file (:wq!) #Restart local DNS service sudo systemctl restart systemd-resolved.service #Query your local DNS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":0,"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nillsf.com\/index.php\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}