Hi,
I will proceed to describe my symptoms, and at the end of my email I
will paste as much relevant data as I can think of.
Sometimes, for ping(8), traceroute(8), lynx(8), and other applications,
name resolution will fail, for some addresses but not for others. For
example:
$ ping www.google.com
ping: unknown host: www.google.com
$ ping www.openbsd.org
PING www.openbsd.org (129.128.5.191): 56 data bytes
64 bytes from 129.128.5.191: icmp_seq=0 ttl=239 time=162.596 ms
$ ping www.yahoo.com
ping: unknown host: www.yahoo.com
$ ping www.netbsd.org
ping: unknown host: www.netbsd.org
$ ping news.bbc.co.uk
PING newswww.bbc.net.uk (212.58.226.29): 56 data bytes
64 bytes from 212.58.226.29: icmp_seq=0 ttl=56 time=77.718 ms
However, dig(8) can resolve the failing hosts fine, as well as the
successful ones. (see end for dig(8) logs).
I am running BIND on this machine, and it is serving DNS to my local
network (upon which all resolutions succeed).
My /etc/resolv.conf is empty and /etc/resolv.conf.tail contains:
lookup file bind
search artyzan.net
I don't understand what's going on here. Your advice appreciated.
Please find attached dig(8) output, contents of
/var/named/etc/named.conf and my dmesg.
Oh, and sometimes www.google.com will resolve. It did last night, but
not right now. I haven't rebooted the machine overnight or made any
changes. Ah, and as I type this, it works again.
Cheers,
James
$ ping www.yahoo.com
ping: unknown host: www.yahoo.com
$ dig @localhost www.yahoo.com
; <<>> DiG 9.3.2-P1 <<>> @localhost www.yahoo.com
; (2 servers found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3907
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 8, ADDITIONAL: 4
;; QUESTION SECTION:
;www.yahoo.com. IN A
;; ANSWER SECTION:
www.yahoo.com. 300 IN CNAME www.yahoo-ht2.akadns.net.
www.yahoo-ht2.akadns.net. 60 IN A 209.73.186.238
;; AUTHORITY SECTION:
akadns.net. 88536 IN NS usw5.akadns.net.
akadns.net. 88536 IN NS asia4.akadns.net.
akadns.net. 88536 IN NS za.akadns.org.
akadns.net. 88536 IN NS zb.akadns.org.
akadns.net. 88536 IN NS zc.akadns.org.
akadns.net. 88536 IN NS zd.akadns.org.
akadns.net. 88536 IN NS eur1.akadns.net.
akadns.net. 88536 IN NS eur7.akadns.net.
;; ADDITIONAL SECTION:
za.akadns.org. 14255 IN A 204.2.178.133
zb.akadns.org. 14255 IN A 206.132.100.105
zc.akadns.org. 14255 IN A 69.45.78.3
zd.akadns.org. 14255 IN A 63.209.3.132
;; Query time: 240 msec
;; SERVER: ::1#53(::1)
;; WHEN: Fri Dec 1 18:27:50 2006
;; MSG SIZE rcvd: 304
~~~
// $OpenBSD: named-simple.conf,v 1.6 2004/08/16 15:48:28 jakob Exp $
//
// Example file for a simple named configuration, processing both
// recursive and authoritative queries using one cache.
// Update this list to include only the networks for which you want
// to execute recursive queries. The default setting allows all hosts
// on any IPv4 networks for which the system has an interface, and
// the IPv6 localhost address.
//
acl clients {
10.0.0.0/24;
::1;
};
options {
version ""; // remove this to allow version queries
listen-on { 127.0.0.1; 10.0.0.1; };
allow-recursion { clients; };
};
logging {
category lame-servers { null; };
};
// Standard zones
//
zone "." {
type hint;
file "standard/root.hint";
};
zone "localhost" {
type master;
file "standard/localhost";
allow-transfer { localhost; };
};
zone "127.in-addr.arpa" {
type master;
file "standard/loopback";
allow-transfer { localhost; };
};
zone
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
type master;
file "standard/loopback6.arpa";
allow-transfer { localhost; };
};
zone "com" {
type delegation-only;
};
zone "net" {
type delegation-only;
};
// Master zones
zone "artyzan.net" {
type master;
file "master/artyzan.net.zone";
};
zone "0.0.10.in-addr.arpa" {
type master;
file "master/0.0.10.in-addr.arpa.zone";
};
key "rndc-key" {
algorithm hmac-md5;
secret "*hidden*";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
~~~
OpenBSD 4.0-stable (GENERIC) #0: Mon Nov 27 00:42:48 GMT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 349 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 267939840 (261660K)
avail mem = 236662784 (231116K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/02/98, BIOS32 rev. 0 @
0xfdb70, SMBIOS rev. 2.1 @ 0xf0d40 (44 entries)
bios0: Gateway GP6-350
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7220/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xc9800/0x1000 0xca800/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA/SGS-Thomson Velocity128" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Maxtor 2F040L0>
wd0: 16-sector PIO, LBA, 39205MB, 80293248 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: polling
iic0 at piixpm0
"unknown" at iic0 addr 0x4e not configured
eap0 at pci0 dev 12 function 0 "Ensoniq AudioPCI97" rev 0x04: irq 9
ac97: codec id 0x43525903 (Cirrus Logic CS4297 rev 3)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
fxp0 at pci0 dev 13 function 0 "Intel 8255x" rev 0x08, i82559: irq 11,
address 00:d0:b7:29:32:66
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci0 dev 14 function 0 "Intel 8255x" rev 0x08, i82559: irq 9,
address 00:90:27:77:19:c0
inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
fxp2 at pci0 dev 15 function 0 "Intel 8255x" rev 0x08, i82559: irq 5,
address 00:d0:b7:0b:4a:78
inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
fxp3 at pci0 dev 16 function 0 "Intel 8255x" rev 0x0c, i82550: irq 10,
address 00:02:b3:ce:70:75
inphy3 at fxp3 phy 1: i82555 10/100 PHY, rev. 4
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask f54d netmask ff6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302