Forget it folks, immediately after posting this I thought of another option.
/etc/hosts is used by the resolver but not dig. Sure enough I'd got entries in there from before I set up named. Gary On Saturday 14 December 2002 1:28 pm, Gary Stainburn wrote: > Hi all, > > I've finally got RH installed on my laptop and I must say I'm impressed > with how well/easy it went on. I use it mainly for web site and database > development. > > So I can use it out of the office I have Apache, Bind, and PostgreSQL > installed. I mirror the web site and database content, and then turn on > bind to redirect everything to 127.0.0.1. > > In this way, I can work in the office (with local bind off) or on the road > (local bind on). > > Well, that's the thoery. However, in the office, with local bind off, > everything appears fine except that I can't access the web sites. I tried > it first with mozilla, then simulated it with wget. Below is the output > from dig which looks fine, followed by wget which shows that it isn't. > I've even taken the reference to the local bind out of /etc/resolv.conf > > [root@ladvent root]# dig www.stainburn.com > > ; <<>> DiG 9.2.1 <<>> www.stainburn.com > ;; global options: printcmd > ;; Got answer: > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2889 > ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 > > ;; QUESTION SECTION: > ;www.stainburn.com. IN A > > ;; ANSWER SECTION: > www.stainburn.com. 14400 IN A 10.5.1.2 > > ;; AUTHORITY SECTION: > stainburn.com. 14400 IN NS larry.ringways.co.uk. > > ;; ADDITIONAL SECTION: > larry.ringways.co.uk. 604800 IN A 10.1.1.101 > > ;; Query time: 8 msec > ;; SERVER: 10.1.1.101#53(10.1.1.101) > ;; WHEN: Sat Dec 14 13:24:35 2002 > ;; MSG SIZE rcvd: 101 > > [root@ladvent root]# wget http://www.stainburn.com > --13:24:44-- http://www.stainburn.com/ > => `index.html' > Resolving www.stainburn.com... done. > Connecting to www.stainburn.com[127.0.0.1]:80... failed: Connection > refused. [root@ladvent root]# cat /etc/resolv.conf > nameserver 10.1.1.101 > search ringways.co.uk > [root@ladvent root]# -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list