{"id":348,"date":"2021-12-14T02:19:18","date_gmt":"2021-12-14T01:19:18","guid":{"rendered":"http:\/\/daisy-street.fr\/?p=348"},"modified":"2021-12-21T16:34:53","modified_gmt":"2021-12-21T15:34:53","slug":"pi-hole-for-dns-serveur","status":"publish","type":"post","link":"https:\/\/daisy-street.fr\/index.php\/2021\/12\/14\/pi-hole-for-dns-serveur\/","title":{"rendered":"Pi hole for DNS serveur"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">arr\u00e9ter le dns embaquer dans ubuntu<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl stop systemd-resolved.service\nsudo systemctl disable systemd-resolved.service\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">temporairement forcer le dns d&#8217;ubuntu <\/h2>\n\n\n\n<p>sur un dns public (8.8.8.8 par exemple)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>nameserver 8.8.8.8\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">installer un loadbalancer<\/h2>\n\n\n\n<p>installer metalLB<\/p>\n\n\n\n<p><a href=\"https:\/\/metallb.universe.tf\/installation\/\">https:\/\/metallb.universe.tf\/installation\/<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: ConfigMap\nmetadata:\n  namespace: metallb-system\n  name: config\ndata:\n  config: |\n    address-pools:\n    - name: default\n      protocol: layer2\n      addresses:\n      - 192.168.1.1-192.168.1.5,192.168.1.200-192.168.1.250<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">installer les services loadbalancer<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Service\nmetadata:\n  name: pihole-web-service\n  namespace: pihole-ns  \nspec:\n  selector:\n    app: pihole\n  ports:\n    - name: web\n      protocol: TCP\n      port: 80\n      targetPort: 80\n  type: LoadBalancer\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: pihole-dns-service\n  namespace: pihole-ns  \nspec:\n  selector:\n    app: pihole\n  ports:\n    - name: dns\n      protocol: UDP\n      port: 53\n      targetPort: 53\n  type: LoadBalancer<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"134\" data-attachment-id=\"349\" data-permalink=\"https:\/\/daisy-street.fr\/index.php\/2021\/12\/14\/pi-hole-for-dns-serveur\/image-12-3\/\" data-orig-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12.png\" data-orig-size=\"1257,164\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-12\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-300x39.png\" data-large-file=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-1024x134.png\" src=\"http:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-1024x134.png\" alt=\"\" class=\"wp-image-349\" srcset=\"https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-1024x134.png 1024w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-300x39.png 300w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12-768x100.png 768w, https:\/\/daisy-street.fr\/wp-content\/uploads\/2021\/12\/image-12.png 1257w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">remettre le dns d&#8217;ubuntu <\/h2>\n\n\n\n<p>sur le dns pihole (192.168.1.241)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>nameserver 192.168.1.241<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>arr\u00e9ter le dns embaquer dans ubuntu temporairement forcer le dns d&#8217;ubuntu sur un dns public (8.8.8.8 par exemple) installer un loadbalancer installer metalLB https:\/\/metallb.universe.tf\/installation\/ installer les services loadbalancer remettre le dns d&#8217;ubuntu sur le dns pihole (192.168.1.241)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"jetpack_publicize_connections":[],"featured_image_src":null,"author_info":{"display_name":"admin9483","author_link":"https:\/\/daisy-street.fr\/index.php\/author\/admin9483\/"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":6,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":419,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/posts\/348\/revisions\/419"}],"wp:attachment":[{"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daisy-street.fr\/index.php\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}