|
Guides All Guides and HOWTO's. |
|
Thread Tools | Display Modes |
|
|||
Working around cheap SOHO routers under OpenBSD
A friend of mine uses a cheaper home router to handle the connection to his ISP, this device implements a small forwarding DNS server.. but it only listens on UDP.
Protocol limitations documented in RFC1035 mention that a packet received from a UDP DNS server be no greater then 512 bytes in size.. or else the packet is truncated. (Whatever that means..). You may be asking why this is relevant.. well, he uses OpenBSD as a workstation.. as such he uses Pidgin to connect to Yahoo's servers. If you dig(1) scs.msg.yahoo.com you'll see how many redundant servers they have.. unfortunately this exceeds the UDP DNS packet limitation and in the case of my friends router makes for a nasty problem.. the domain can't be resolved. Code:
;; Truncated, retrying in TCP mode. ;; Connection to 192.168.1.1#53(192.168.1.1) for scs.msg.yahoo.com failed: connection refused. 1) Use his ISP's servers directly in /etc/resolv.conf 2) Use OpenBSD and replace the SOHO router.. 3) Try enabling the edns0 option in /etc/resolv.conf But naturally.. he chose #3, and it appears to work for him.. Quote:
Note; dig(1) will still try to use a TCP server if the query is too large.. so use the +ignore option to bypass that. Last edited by BSDfan666; 23rd November 2008 at 07:40 PM. |
|
|||
This should also work under NetBSD, unfortunately neither FreeBSD or DragonflyBSD support this.
|
Tags |
openbsd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Working with CVS? | Zmyrgel | OpenBSD General | 15 | 6th October 2009 01:32 PM |
Apache 1.3 and PHP 5, Not Working! | dialeight | OpenBSD Packages and Ports | 7 | 7th June 2009 06:43 PM |
[ OpenBSD 4.5 ] apm -C not working | wraith0x2b | OpenBSD Installation and Upgrading | 17 | 6th May 2009 09:03 AM |
Cheap, FreeBSD compatible mini PC? | chris | General Hardware | 2 | 26th September 2008 06:28 AM |
Working Configuration for Openbsd 4.0 - Postfix - SASL - TLS | roundkat | Guides | 0 | 4th May 2008 05:38 PM |