# Can A Router Get a Virus?

**URL:** <https://boards.straightdope.com/t/can-a-router-get-a-virus/622882>\
**Category:** Factual Questions\
**Created:** [May 23, 2012, 9:30pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882 "2012-05-23T21:30:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://boards.straightdope.com/u/Jinx)\
**Post date:** [May 23, 2012, 9:30pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/1 "2012-05-23T21:30:41Z")

</div>

Lately, our desktop PC has problems getting results from Google. Any suggested “hit” goes to some random website. Ok, we figured our desktop PC has a virus of some sort. But, even when I bring home my work laptop (which I know is not infected) acts weird when I use Google at home via a wireless connection through my home’s router…but works fine at the office. What’s up with that? Can my router have a virus?

---

<div class="post-metadata">

**Author:** ![Shagnasty](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@Shagnasty](https://boards.straightdope.com/u/Shagnasty)\
**Post date:** [May 23, 2012, 9:33pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/2 "2012-05-23T21:33:07Z")

</div>

In theory it could through a firmware update but they don’t in real-life so let’s just say ‘No’ to this one.

---

<div class="post-metadata">

**Author:** ![arseNal](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@arseNal](https://boards.straightdope.com/u/arseNal)\
**Post date:** [May 23, 2012, 10:17pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/3 "2012-05-23T22:17:57Z")

</div>

I would have normally said this is so unlikely as to be for all intents and purposes impossible. But I decided to see if it’s ever happened, ever, and this was the first hit: [http://tidystorm.com/423/the-redirect-virus-was-in-my-router/](http://tidystorm.com/423/the-redirect-virus-was-in-my-router/)

In short, it’s not actually a virus in the router, but a virus on a PC connected to the router (which did not have its default password changed) and then changed the DNS server setting on it. I have to say this is entirely within the realm of possibility, and seems to match your described situation.

So … did you ever change your router’s admin password? If not (or heck, even if you did), check your router settings and look at the DNS server setting.

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [May 23, 2012, 10:24pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/4 "2012-05-23T22:24:44Z")

</div>

A router can get a virus. Most routers run some miniature version of linux, which is not 100 percent immune to viruses and such. Resetting the router (press the reset button or simply power cycle it) will reload the OS from the router’s firmware, which will usually wipe the virus out of the router.

As Shagnasty said it is theoretically possible that the virus could be loaded into the router’s firmware, but I’ve never actually heard of this happening in real life.

You may want to go into your router settings and see where it’s getting its DNS information from. It’s possible that someone simply hacked their way into your router’s settings and redirected its DNS requests. That doesn’t even require a virus.

Another possibility is that it’s not even your problem at all. Your ISP could be a victim of what is called DNS cache poisoning, where someone maliciously redirects your ISP’s local cache of DNS resolution addresses. If you have a known clean system, your router has been reset and its settings checked, and you still have a problem, then it’s probably a good time to check with your ISP and have them check their DNS server.

---

<div class="post-metadata">

**Author:** ![KneadToKnow](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kneadtoknow/32/3999_2.png) [@KneadToKnow](https://boards.straightdope.com/u/KneadToKnow)\
**Post date:** [May 23, 2012, 10:40pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/5 "2012-05-23T22:40:53Z")

</div>

FWIW, I like [OpenDNS](http://www.opendns.com/).

---

<div class="post-metadata">

**Author:** ![dnooman](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dnooman](https://boards.straightdope.com/u/dnooman)\
**Post date:** [May 24, 2012, 4:41am UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/6 "2012-05-24T04:41:40Z")

</div>

Can’t anything that can store code get a virus? I would think so.

---

<div class="post-metadata">

**Author:** ![The\_Niply\_Elder](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@The\_Niply\_Elder](https://boards.straightdope.com/u/The_Niply_Elder)\
**Post date:** [May 24, 2012, 7:11am UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/7 "2012-05-24T07:11:40Z")

</div>

As eng\_comp\_geek mentioned, 99% guarantee that its the ISP’s fault. For instance, my dad gets his internet from Juno and whenever you type a wuery into firefox’s URL box it shows a search result page from Netzero. Just change the DNS settings in your network connection to 8.8.8.8 and that will fix everything.

---

<div class="post-metadata">

**Author:** ![GiantRat](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@GiantRat](https://boards.straightdope.com/u/GiantRat)\
**Post date:** [May 24, 2012, 7:30pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/8 "2012-05-24T19:30:22Z")

</div>

> [@The\_Niply\_Elder](#):
>
> As eng\_comp\_geek mentioned, 99% guarantee that its the ISP’s fault. For instance, my dad gets his internet from Juno and whenever you type a wuery into firefox’s URL box it shows a search result page from Netzero. Just change the DNS settings in your network connection to 8.8.8.8 and that will fix everything.

Yeah, just trust Google… because they’d never “be evil.” Yeesh.

Sarcasms intended.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://boards.straightdope.com/u/Jinx)\
**Post date:** [May 25, 2012, 12:13pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/9 "2012-05-25T12:13:34Z")

</div>

Good thoughts, but our iPhones use the same router from which we can Google just fine. How do you explain that?

---

<div class="post-metadata">

**Author:** ![AlsoNamedBort](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/alsonamedbort/32/3213_2.png) [@AlsoNamedBort](https://boards.straightdope.com/u/AlsoNamedBort)\
**Post date:** [May 25, 2012, 1:47pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/10 "2012-05-25T13:47:35Z")

</div>

> [@arseNal](#):
>
> I would have normally said this is so unlikely as to be for all intents and purposes impossible. But I decided to see if it’s ever happened, ever, and this was the first hit: [http://tidystorm.com/423/the-redirect-virus-was-in-my-router/](http://tidystorm.com/423/the-redirect-virus-was-in-my-router/)
> 
> In short, it’s not actually a virus in the router, but a virus on a PC connected to the router (which did not have its default password changed) and then changed the DNS server setting on it. I have to say this is entirely within the realm of possibility, and seems to match your described situation.
> 
> So … did you ever change your router’s admin password? If not (or heck, even if you did), check your router settings and look at the DNS server setting.

My parent’s router had that last year. It was really annoying when I came to visit, and my laptop wasn’t working correctly (since I do a good job of keeping it clean). Running anti-virus/malware on my parent’s computer didn’t help, I had to do a complete reset of their router.

---

<div class="post-metadata">

**Author:** ![dnooman](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@dnooman](https://boards.straightdope.com/u/dnooman)\
**Post date:** [May 26, 2012, 7:20am UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/11 "2012-05-26T07:20:40Z")

</div>

> [@Jinx](#):
>
> Good thoughts, but our iPhones use the same router from which we can Google just fine. How do you explain that?

There’s a lot of missing information in this thread.

If your browser is indeed being re-directed, I’m sure it’s not going to a truly random site, that makes no sense. It’s likely re-directing to a site that you have never heard of or something similar.

[quote=]  
when I bring home my work laptop (which I know is not infected) acts weird when I use Google  
[/quote]  
tells us next to nothing about what’s actually happening.

[quote=]  
our iPhones use the same router from which we can Google just fine. How do you explain that?  
[/quote]  
I put my money on the router not being the issue, but your iPhone and your computer are totally different hardware sets with totally different software settings and limitations.

I’m leaning towards a DNS issue, and would hard reset the router just in case. Also clean the PC of any possible malware.

---

<div class="post-metadata">

**Author:** ![jz78817](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/jz78817/32/1028_2.png) [@jz78817](https://boards.straightdope.com/u/jz78817)\
**Post date:** [May 26, 2012, 11:23am UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/12 "2012-05-26T11:23:49Z")

</div>

> [@GiantRat](#):
>
> Yeah, just trust Google… because they’d never “be evil.” Yeesh.
> 
> Sarcasms intended.

Google is the new Microsoft.

---

<div class="post-metadata">

**Author:** ![Gukumatz](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@Gukumatz](https://boards.straightdope.com/u/Gukumatz)\
**Post date:** [May 27, 2012, 7:26pm UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/13 "2012-05-27T19:26:24Z")

</div>

I’d say Apple is the new Microsoft, but that’s not really pertinent here.

Can you take a quick look at your .hosts file? I once had a virus overwrite it, so it would redirect certain addresses to phishing sites. ([Cnn.com](http://Cnn.com) would go to something like [cenn.com](http://cenn.com), an ad-generator, even though I painstakingly typed it out or used worked-before bookmarks.)

Or you could try pinging a website and then trying to connect by typing in the IP. If it still redirects, that’d be odd, but at least it would be a datapoint.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [May 29, 2012, 7:39am UTC](https://boards.straightdope.com/t/can-a-router-get-a-virus/622882/14 "2012-05-29T07:39:26Z")

</div>

> [@GiantRat](#):
>
> Yeah, just trust Google… because they’d never “be evil.” Yeesh.
> 
> Sarcasms intended.

Google may be EVIL, but it’s not in their best interest to put out a DNS server that infects user’s machine or that otherwise works incorrectly. In fact, making sure you have access the entire Internet is kinda important to their main service of search provider. It’s not good if they give you results and then you can’t go to the page.
