On Sun, Sep 14, 2025 at 09:32:14PM +0200, Divan Santana wrote:
> Greetings :)
>
> Why would dns lookup fail for freshrss a php httpd application, but it
> works when I run dig +short URL ?
Usually this is because php-fpm runs chrooted in /var/www and one
forgets to copy /etc/resolv.conf to /var/www/etc/resolv.conf
> Do you know how I could one troubleshoot this further, it seems odd.
>
> openbsd# cat /etc/resolv.conf
> nameserver 154.0.1.1 # resolvd: pppoe0
> nameserver 154.0.1.10 # resolvd: pppoe0
> lookup file bind
> search santanas.co.za
> domain santanas.co.za
>
> More details:
>
> I have an openbsd VM running on omnios. It has two virtual interfaces
> attached, one for the internet and one for the LAN. I do run unbound
> locally for local DNS resolution. The system is a firewall gateway
> for the LAN.
>
> # /etc/httpd.conf
> server "santanas.co.za" {
> listen on * port 8080
>
> root "/freshrss/p"
> directory index "index.php"
>
> location "/" {
> directory index "index.html"
> }
> location "*.php" {
> fastcgi socket "/run/php-fpm.sock"
> }
> }
>
> openbsd# route -n show -inet
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Mtu Prio
> Iface
> default 100.100.101.67 UGS 130 62521693 - 8
> pppoe0
> 224/4 127.0.0.1 URS 0 223763 32768 8 lo0
> 100.100.101.67 192.145.132.53 UHh 1 325 - 8
> pppoe0
> 127/8 127.0.0.1 UGRS 0 0 32768 8 lo0
> 127.0.0.1 127.0.0.1 UHhl 3 113824 32768 1 lo0
> 192.145.132.53 192.145.132.53 UHl 0 22005 - 1
> pppoe0
> 192.168.77/24 192.168.77.1 UCn 18 396212 - 4 vio0
> 192.168.77.1 02:08:20:eb:14:74 UHLl 0 1585221 - 1 vio0
> 192.168.77.3 30:b5:c2:b3:a0:36 UHLc 0 248056 - 3 vio0
> 192.168.77.4 30:b5:c2:b3:a5:ce UHLc 1 248025 - 3 vio0
> 192.168.77.6 d4:93:90:2b:a0:e6 UHLc 9 1547368 - 3 vio0
> 192.168.77.13 1c:53:f9:37:85:67 UHLc 0 436534 - 3 vio0
> 192.168.77.18 60:55:f9:6b:9b:24 UHLc 0 400963 - 3 vio0
> 192.168.77.19 00:14:d1:ed:ad:3e UHLc 0 266125 - 3 vio0
> 192.168.77.153 b6:d5:b8:fd:e8:c6 UHLc 0 787859 - 3 vio0
> 192.168.77.166 ca:88:18:b1:7e:2a UHLc 0 398429 - 3 vio0
> 192.168.77.168 fc:41:16:e9:64:c5 UHLc 1 412702 - L 3 vio0
> 192.168.77.228 02:08:20:d0:82:6a UHLc 1 449177 - 3 vio0
> 192.168.77.229 02:08:20:bd:b0:63 UHLc 0 371934 - 3 vio0
> 192.168.77.230 02:08:20:ed:9e:cb UHLc 1 887967 - 3 vio0
> 192.168.77.231 02:08:20:b7:d0:f6 UHLc 0 396049 - 3 vio0
> 192.168.77.232 02:08:20:04:ca:22 UHLc 0 396215 - 3 vio0
> 192.168.77.237 link#1 UHLc 1 396296 - 3 vio0
> 192.168.77.238 link#1 UHLc 1 396230 - 3 vio0
> 192.168.77.248 link#1 UHLc 1 396230 - 3 vio0
> 192.168.77.249 link#1 UHLc 1 396302 - 3 vio0
> 192.168.77.255 192.168.77.1 UHb 0 30735 - 1 vio0
>
> openbsd# dmesg
> OpenBSD 7.7 (GENERIC.MP) #2: Sun Jun 29 09:04:02 MDT 2025
>
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 2108628992 (2010MB)
> avail mem = 2018402304 (1924MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7eafa000 (13 entries)
> bios0: vendor BHYVE version "14.0" date 10/10/2021
> bios0: OmniOS OmniOS HVM
> efi0 at bios0: UEFI 2.7
> efi0: BHYVE rev 0x10000
> acpi0 at bios0: ACPI 4.0
> acpi0: sleep states S5
> acpi0: tables DSDT FACP HPET APIC MCFG SPCR BGRT
> acpi0: wakeup devices
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 16777216 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: 12th Gen Intel(R) Core(TM) i7-12700, 2111.42 MHz, 06-97-02
> cpu0: cpuid 1
> edx=9f8bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,HTT,PBE>
>
> ecx=f6da7a17<SSE3,PCLMUL,DTES64,DS-CPL,SSSE3,SDBG,FMA3,CX16,xTPR,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV>
> cpu0: cpuid 6 eax=4<ARAT>
> cpu0: cpuid 7.0
> ebx=201403a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,RDSEED,SMAP,SHA> ecx=600
> edx=400<MD_CLEAR>
> cpu0: cpuid d.1 eax=1<XSAVEOPT>
> cpu0: cpuid 80000001 edx=24100800<NXE,PAGE1GB,LONG> ecx=121<LAHF,ABM,3DNOWP>
> cpu0: cpuid 80000007 edx=100<ITSC>
> cpu0: MELTDOWN
> cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB
> 64b/line 10-way L2 cache, 25MB 64b/line 10-way L3 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> cpu0: apic clock running at 134MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: 12th Gen Intel(R) Core(TM) i7-12700, 2111.44 MHz, 06-97-02
> cpu1: smt 0, core 0, package 1
> cpu2 at mainbus0: apid 2 (application processor)
> cpu2: 12th Gen Intel(R) Core(TM) i7-12700, 2111.44 MHz, 06-97-02
> cpu2: smt 0, core 0, package 2
> cpu3 at mainbus0: apid 3 (application processor)
> cpu3: 12th Gen Intel(R) Core(TM) i7-12700, 2111.40 MHz, 06-97-02
> cpu3: smt 0, core 0, package 3
> ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 11, 32 pins, remapped
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xe0000000, bus 0-255
> acpiprt0 at acpi0: bus 0 (PC00)
> acpipci0 at acpi0 PC00
> "PNP0303" at acpi0 not configured
> "PNP0F03" at acpi0 not configured
> com0 at acpi0 COM1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
> com1 at acpi0 COM2 addr 0x2f8/0x8 irq 3: ns16550a, 16 byte fifo
> acpicmos0 at acpi0
> cpu0: using VERW MDS workaround
> pvbus0 at mainbus0: bhyve
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x00
> pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
> ahci0 at pci0 dev 3 function 0 "Intel 82801H AHCI" rev 0x00: msi, AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> cd0 at scsibus1 targ 0 lun 0: <BHYVE, BHYVE DVD-ROM, 001> removable
> virtio0 at pci0 dev 4 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk0 at virtio0
> virtio0: msix per-VQ
> scsibus2 at vioblk0: 1 targets
> sd0 at scsibus2 targ 0 lun 0: <VirtIO, Block Device, >
> sd0: 102400MB, 512 bytes/sector, 209715200 sectors
> virtio1 at pci0 dev 6 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio1: 1 queue, address 02:08:20:eb:14:74
> virtio1: msix shared
> virtio2 at pci0 dev 6 function 1 "Qumranet Virtio Network" rev 0x00
> vio1 at virtio2: 1 queue, address 02:08:20:d5:8b:7b
> virtio2: msix shared
> unknown vendor 0xfb5d product 0x40fb (class display subclass VGA, rev 0x00)
> at pci0 dev 30 function 0 not configured
> xhci0 at pci0 dev 30 function 1 "Intel 7 Series xHCI" rev 0x00: msi, xHCI
> 1.0
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
> 3.00/1.00 addr 1
> isa0 at pcib0
> isadma0 at isa0
> com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> efifb0 at mainbus0: 1024x768, 32bpp
> wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> uhub0: device problem, disabling port 1
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (ce7fb80211640940.a) swap on sd0b dump on sd0b
> pppoe0: received unexpected PADO
> pppoe0: received unexpected PADO
> pppoe0: received unexpected PADO
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> arp info overwritten for 192.168.77.9 by ca:88:18:b1:7e:2a on vio0
> arp info overwritten for 192.168.77.168 by 4a:d1:06:f2:45:7f on vio0
> arp info overwritten for 192.168.77.168 by 4a:d1:06:f2:45:7f on vio0
> arp info overwritten for 192.168.77.168 by 4a:d1:06:f2:45:7f on vio0
> arp info overwritten for 192.168.77.168 by fc:41:16:e9:64:c5 on vio0
> arp info overwritten for 192.168.77.9 by ca:88:18:b1:7e:2a on vio0
> pppoe0: LCP keepalive timeout
> pppoe0: received unexpected PADO
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> pppoe0: host unique tag found, but it belongs to a connection in state 3
> pppoe: received PADO but could not find request for it
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> arp info overwritten for 192.168.77.6 by c4:3d:1a:db:65:eb on vio0
> arp info overwritten for 192.168.77.6 by d4:93:90:2b:a0:e6 on vio0
> pppoe0: LCP keepalive timeout
> pppoe0: received unexpected PADO
> pppoe0: received unexpected PADO
> pppoe0: received unexpected PADO
>
--