<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>環境 Docker PHP 8.x gethostbyaddrとは PHPではgethostbyaddr関数というのがある。指定したIPのリモートホスト名を取得することができる。 gethostbyaddr('66.249.66.1'); これをDocker使ってワンライナーでやりたい。 結論 これでワンライナーで実行できる $ docker run --rm --dns 8.8.8.8 php:8-cli php -r &quot;echo gethostbyaddr('66.249.66.1');&quot; crawl-66-249-66-1.googlebot.com ポイントは以下 --rm: コンテナ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20240924%2F1727188852&quot; title=&quot;IPからリモートホストを調べるgethostbyaddrをDockerで動かす - 動かざることバグの如し&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-24 23:40:52</published>
  <title>IPからリモートホストを調べるgethostbyaddrをDockerで動かす</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20240924/1727188852</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
