Re: DNS problems - slow to resolve

2005-01-02 Thread David Daugherty
Ok, I wasn't getting the IPs in my resolv.conf because I had
dhclient.conf modified to supersede to the local DNS. Here's what I
did to determine the DNS that my ISP was assigning me.

I changed the dhclient.conf back to empty and restarted the network.
This then put the IPs of the two DNS servers assigned into my
resolv.conf. I then took these two IPs and added them to my forwarders
section in my named.conf. Rebooted and name lookup is much faster now.

It only took my wife grumping about having to hit refresh 20+ times to
bring up a web page in order for me to fix this since we've moved and
changed ISPs.

Thanks for the ideas everyone.


On Sun, 2 Jan 2005 10:52:14 -0500, David Daugherty
<[EMAIL PROTECTED]> wrote:
> Ah, yes..dig. Forgot that it had a resolve time in there.
> 
> Here's a perfect example of the slowness I'm talking about:
> su-2.05b# dig yahoo.com
> 
> ; <<>> DiG 8.3 <<>> yahoo.com
> ;; res options: init recurs defnam dnsrch
> ;; res_nsend: Operation timed out
> su-2.05b# dig yahoo.com
> 
> ; <<>> DiG 8.3 <<>> yahoo.com
> ;; res options: init recurs defnam dnsrch
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1563
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 0
> ;; QUERY SECTION:
> ;;  yahoo.com, type = A, class = IN
> 
> ;; ANSWER SECTION:
> yahoo.com.  5M IN A 216.109.112.135
> yahoo.com.  5M IN A 66.94.234.13
> 
> ;; AUTHORITY SECTION:
> yahoo.com.  1d6h52m8s IN NS  ns2.yahoo.com.
> yahoo.com.  1d6h52m8s IN NS  ns3.yahoo.com.
> yahoo.com.  1d6h52m8s IN NS  ns4.yahoo.com.
> yahoo.com.  1d6h52m8s IN NS  ns5.yahoo.com.
> yahoo.com.  1d6h52m8s IN NS  ns1.yahoo.com.
> 
> ;; Total query time: 6179 msec
> ;; FROM: datasphereweb.com to SERVER: 127.0.0.1
> ;; WHEN: Sun Jan  2 09:55:17 2005
> ;; MSG SIZE  sent: 27  rcvd: 149
> 
> First one didn't resolve in time. Second one, 6 seconds!!!
> 
> On Sun, 2 Jan 2005 10:49:28 -0500, David Daugherty
> <[EMAIL PROTECTED]> wrote:
> > The problem with resolv.conf is that it just puts insightbb.com in
> > there. Doing a whois on insightbb.com gives a few DNS servers but none
> > of them are any speedier lookups then the others. If I put the IP that
> > insightbb.com resolves to it's still slow.
> >
> >
> > On Sun, 2 Jan 2005 09:41:20 -0600, Josh Paetzel <[EMAIL PROTECTED]> wrote:
> > > On Sunday 02 January 2005 09:22, David Daugherty wrote:
> > > > I'm running BIND 9 for my own DNS and I'm connecting to the
> > > > Internet through cable modem. In my named.conf I have a forwarders
> > > > section where I put the IPs for my ISPs DNS. Since my connection to
> > > > the ISP is DHCP how can I determine the DNS IPs that have been
> > > > assigned? I don't see it when man'ing ifconfig.
> > >
> > > /etc/resolv.conf lists which nameservers your system is using.
> > >
> > > (Hope I didn't completely interpret your question) :-/
> > >
> > > --
> > > Thanks,
> > >
> > > Josh Paetzel
> > >
> >
> > --
> > Doc
> >
> > [EMAIL PROTECTED]
> > 317.536.1858
> >
> > "The only thing necessary for evil to triumph is for good men to do
> > nothing."
> >   - Edmund Burke
> >
> 
> --
> Doc
> 
> [EMAIL PROTECTED]
> 317.536.1858
> 
> "The only thing necessary for evil to triumph is for good men to do
> nothing."
>   - Edmund Burke
> 


-- 
Doc

[EMAIL PROTECTED]
317.536.1858

"The only thing necessary for evil to triumph is for good men to do
nothing."
   - Edmund Burke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS problems - slow to resolve

2005-01-02 Thread David Daugherty
Ah, yes..dig. Forgot that it had a resolve time in there.

Here's a perfect example of the slowness I'm talking about:
su-2.05b# dig yahoo.com

; <<>> DiG 8.3 <<>> yahoo.com 
;; res options: init recurs defnam dnsrch
;; res_nsend: Operation timed out
su-2.05b# dig yahoo.com

; <<>> DiG 8.3 <<>> yahoo.com 
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1563
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 5, ADDITIONAL: 0
;; QUERY SECTION:
;;  yahoo.com, type = A, class = IN

;; ANSWER SECTION:
yahoo.com.  5M IN A 216.109.112.135
yahoo.com.  5M IN A 66.94.234.13

;; AUTHORITY SECTION:
yahoo.com.  1d6h52m8s IN NS  ns2.yahoo.com.
yahoo.com.  1d6h52m8s IN NS  ns3.yahoo.com.
yahoo.com.  1d6h52m8s IN NS  ns4.yahoo.com.
yahoo.com.  1d6h52m8s IN NS  ns5.yahoo.com.
yahoo.com.  1d6h52m8s IN NS  ns1.yahoo.com.

;; Total query time: 6179 msec
;; FROM: datasphereweb.com to SERVER: 127.0.0.1
;; WHEN: Sun Jan  2 09:55:17 2005
;; MSG SIZE  sent: 27  rcvd: 149

First one didn't resolve in time. Second one, 6 seconds!!!

On Sun, 2 Jan 2005 10:49:28 -0500, David Daugherty
<[EMAIL PROTECTED]> wrote:
> The problem with resolv.conf is that it just puts insightbb.com in
> there. Doing a whois on insightbb.com gives a few DNS servers but none
> of them are any speedier lookups then the others. If I put the IP that
> insightbb.com resolves to it's still slow.
> 
> 
> On Sun, 2 Jan 2005 09:41:20 -0600, Josh Paetzel <[EMAIL PROTECTED]> wrote:
> > On Sunday 02 January 2005 09:22, David Daugherty wrote:
> > > I'm running BIND 9 for my own DNS and I'm connecting to the
> > > Internet through cable modem. In my named.conf I have a forwarders
> > > section where I put the IPs for my ISPs DNS. Since my connection to
> > > the ISP is DHCP how can I determine the DNS IPs that have been
> > > assigned? I don't see it when man'ing ifconfig.
> >
> > /etc/resolv.conf lists which nameservers your system is using.
> >
> > (Hope I didn't completely interpret your question) :-/
> >
> > --
> > Thanks,
> >
> > Josh Paetzel
> >
> 
> --
> Doc
> 
> [EMAIL PROTECTED]
> 317.536.1858
> 
> "The only thing necessary for evil to triumph is for good men to do
> nothing."
>   - Edmund Burke
> 


-- 
Doc

[EMAIL PROTECTED]
317.536.1858

"The only thing necessary for evil to triumph is for good men to do
nothing."
   - Edmund Burke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS problems - slow to resolve

2005-01-02 Thread David Daugherty
The problem with resolv.conf is that it just puts insightbb.com in
there. Doing a whois on insightbb.com gives a few DNS servers but none
of them are any speedier lookups then the others. If I put the IP that
insightbb.com resolves to it's still slow.


On Sun, 2 Jan 2005 09:41:20 -0600, Josh Paetzel <[EMAIL PROTECTED]> wrote:
> On Sunday 02 January 2005 09:22, David Daugherty wrote:
> > I'm running BIND 9 for my own DNS and I'm connecting to the
> > Internet through cable modem. In my named.conf I have a forwarders
> > section where I put the IPs for my ISPs DNS. Since my connection to
> > the ISP is DHCP how can I determine the DNS IPs that have been
> > assigned? I don't see it when man'ing ifconfig.
> 
> /etc/resolv.conf lists which nameservers your system is using.
> 
> (Hope I didn't completely interpret your question) :-/
> 
> --
> Thanks,
> 
> Josh Paetzel
> 


-- 
Doc

[EMAIL PROTECTED]
317.536.1858

"The only thing necessary for evil to triumph is for good men to do
nothing."
   - Edmund Burke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS problems - slow to resolve

2005-01-02 Thread Josh Paetzel
On Sunday 02 January 2005 09:22, David Daugherty wrote:
> I'm running BIND 9 for my own DNS and I'm connecting to the
> Internet through cable modem. In my named.conf I have a forwarders
> section where I put the IPs for my ISPs DNS. Since my connection to
> the ISP is DHCP how can I determine the DNS IPs that have been
> assigned? I don't see it when man'ing ifconfig.

/etc/resolv.conf lists which nameservers your system is using. 

(Hope I didn't completely interpret your question) :-/

-- 
Thanks,

Josh Paetzel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DNS problems - slow to resolve

2005-01-02 Thread Michael Madden
David Daugherty wrote:
Are there tools/commands I can use to determine the resolution time
that my lookups are taking? A lot of my web browser requests are
timing out (name lookups) and I have to keep hitting refresh until it
finally resolves.
I'd try using dig:
> dig www.freebsd.org
At the end look for the query time:
;; Query time: 3 msec
;; WHEN: Sun Jan  2 09:33:07 2005
;; MSG SIZE  rcvd: 211
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


DNS problems - slow to resolve

2005-01-02 Thread David Daugherty
I'm running BIND 9 for my own DNS and I'm connecting to the Internet
through cable modem. In my named.conf I have a forwarders section
where I put the IPs for my ISPs DNS. Since my connection to the ISP is
DHCP how can I determine the DNS IPs that have been assigned? I don't
see it when man'ing ifconfig.

Are there tools/commands I can use to determine the resolution time
that my lookups are taking? A lot of my web browser requests are
timing out (name lookups) and I have to keep hitting refresh until it
finally resolves.

-- 
Doc

[EMAIL PROTECTED]
317.536.1858

"The only thing necessary for evil to triumph is for good men to do
nothing."
   - Edmund Burke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"