07-04-2008, 20:02
|
#1
|
cf.addict
Join Date: Mar 2007
Posts: 412
|
DNS Query
Regarding the recent scare about some routers having their DNS entries changed, I was wondering about the following.
If you have static IP entries on a PC, including DNS entries, and you also have DNS entries in the router, which one does the PC actually use when doing a lookup?
So, if the router entries were changed, does it matter to the PC?
Thoughts, opinions.......
|
|
|
07-04-2008, 20:07
|
#2
|
Inactive
Join Date: Jan 2004
Posts: 1,164
|
Re: DNS Query
the one on the PC, the router's DNS settings should only be used by a PC when it requests an IP off the router (via DHCP)
|
|
|
08-04-2008, 14:51
|
#3
|
cf.addict
Join Date: Mar 2007
Posts: 412
|
Re: DNS Query
Thanks for the quick reply.
Good to know there are always people who know stuff ........
|
|
|
08-04-2008, 15:07
|
#4
|
cf.mega poster
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 44
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,996
|
Re: DNS Query
Quote:
Originally Posted by dev
the one on the PC, the router's DNS settings should only be used by a PC when it requests an IP off the router (via DHCP)
|
Most(if not all routers) will act as a DNS proxy, where the PC uses the router as a DNS server and then the router passses the request on to the ISP(or whatever it's got set as it's DNS addreses. Whether your PC uses the routers DNS proxy depends on if you've got your primary DNS nameserver set to the IP of your router. This is true whether your IP is allocated by DHCP, or you have manually set a static address.
Even on a small home network you should always dns through your router as this can avoid un-necessary DNS lookups, for example I go to news.bbc.co.uk, the router has to pass the query on to external DNS resolution, my partner then goes to news.bbc.co.uk on her PC, this time the router answers the DNS request directly as it already knows the answer.
|
|
|
08-04-2008, 15:28
|
#5
|
Inactive
Join Date: Jan 2004
Posts: 1,164
|
Re: DNS Query
Quote:
Originally Posted by Jon T
Most(if not all routers) will act as a DNS proxy, where the PC uses the router as a DNS server and then the router passses the request on to the ISP(or whatever it's got set as it's DNS addreses. Whether your PC uses the routers DNS proxy depends on if you've got your primary DNS nameserver set to the IP of your router. This is true whether your IP is allocated by DHCP, or you have manually set a static address.
Even on a small home network you should always dns through your router as this can avoid un-necessary DNS lookups, for example I go to news.bbc.co.uk, the router has to pass the query on to external DNS resolution, my partner then goes to news.bbc.co.uk on her PC, this time the router answers the DNS request directly as it already knows the answer.
|
i would have thought the router would only be doing the DNS queries if the settings on the PC set it to, i'd hate a router that was intercepting traffic and doing things itself and i know both linksys routers i've had haven't done this.
|
|
|
08-04-2008, 15:50
|
#6
|
cf.mega poster
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 44
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,996
|
Re: DNS Query
Quote:
Originally Posted by dev
i would have thought the router would only be doing the DNS queries if the settings on the PC set it to, i'd hate a router that was intercepting traffic and doing things itself and i know both linksys routers i've had haven't done this.
|
that's what I said.
"Whether your PC uses the routers DNS proxy depends on if you've got your primary DNS nameserver set to the IP of your router"
If your PC(or other TCP/IP device) has it's own DNS servers specified(and the adresses are not that of your router), then your router will play no part in DNS resolution at all.
|
|
|
08-04-2008, 18:09
|
#7
|
Inactive
Join Date: Jan 2004
Posts: 1,164
|
Re: DNS Query
Quote:
Originally Posted by Jon T
that's what I said.
"Whether your PC uses the routers DNS proxy depends on if you've got your primary DNS nameserver set to the IP of your router"
If your PC(or other TCP/IP device) has it's own DNS servers specified(and the adresses are not that of your router), then your router will play no part in DNS resolution at all.
|
missed that out ><. So what i said originally was correct. The settings in the router will only be used if you are using DHCP, otherwise setting a static IP requires you to manually put them in, and so the ones you put in will be used.
|
|
|
08-04-2008, 18:42
|
#8
|
cf.mega poster
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 44
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,996
|
Re: DNS Query
Quote:
Originally Posted by dev
missed that out ><. So what i said originally was correct. The settings in the router will only be used if you are using DHCP, otherwise setting a static IP requires you to manually put them in, and so the ones you put in will be used.
|
Yep
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 12:43.
|