<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>holtit_32</author_name>
  <author_url>https://blog.hatena.ne.jp/holtit_32/</author_url>
  <blog_title>一歩</blog_title>
  <blog_url>https://holtit.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>背景 AnsibleでVM作って、そのVMのレコードを自動で「DNS書き換え」に書き込みたい。 API AdGuardHomeはAPIが公開されているのでそれを使う。 github.com 今回の操作対象は「DNS書き換え」なので叩くポイントは /rewrite/hogeになる。 一覧 /rewrite/list 追加 /rewrite/add 削除 /rewrite/delete とか curlで シンプルにレコードを1行追加するだけだから簡単。 curl -u &quot;user:pass&quot; -X POST -d '{&quot;domain&quot; : &quot;hoge.example.com&quot; , &quot;answer&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fholtit.hatenablog.jp%2Fentry%2F2025%2F11%2F22%2F142841&quot; title=&quot;AdGuardHomeの「DNS書き換え」をAPIで操作する - 一歩&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/h/holtit_32/20251121/20251121165647.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-22 14:28:41</published>
  <title>AdGuardHomeの「DNS書き換え」をAPIで操作する</title>
  <type>rich</type>
  <url>https://holtit.hatenablog.jp/entry/2025/11/22/142841</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
