LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-07-2004, 07:12 AM   #1
DocKarl
LQ Newbie
 
Registered: Aug 2003
Posts: 14

Rep: Reputation: 0
Why am I flooding my network with ARP requests?


Hi there!

Having some issues with something I have configured wrong in RH9, which is causing my RH9 to send very frequent ARP requests to my poor external DNS server. Apart from making my wireless LAN slow, this is also causing wasted bandwidth!!

Basically, my RH9 computer believes it wants to contact a host called 'localhost', so first it sends an ARP to the DNS server (syd.optushome.com.au), which of course replies, no such name. The next step my computer then takes is to attempt to find the host using the resolv.conf file - which has my ISP servers name in it as a default search, so naturally it tries to find localhost there... hence the search for localhost.qld.optushome.com.au.... (or at least I think this is the reason) please see TCPdump below:-

21:37:00.364267 192.168.0.100.33839 > dns.syd.optusnet.com.au.domain: 37785+ A? localhost.qld.optushome.com.au. (48) (DF)
21:37:00.366441 192.168.0.100.33840 > dns.syd.optusnet.com.au.domain: 37626+ PTR? 132.75.2.203.in-addr.arpa. (43) (DF)
21:37:00.393084 dns.syd.optusnet.com.au.domain > 192.168.0.100.33840: 37626* 1/3/2 (182)
21:37:00.393955 192.168.0.100.33840 > dns.syd.optusnet.com.au.domain: 37627+ PTR? 100.0.168.192.in-addr.arpa. (44) (DF)
21:37:00.403176 dns.syd.optusnet.com.au.domain > 192.168.0.100.33839: 37785 NXDomain* 0/1/0 (108)
21:37:00.403392 192.168.0.100.33841 > dns.syd.optusnet.com.au.domain: 37786+ A? localhost. (27) (DF)
21:37:00.423050 dns.syd.optusnet.com.au.domain > 192.168.0.100.33840: 37627 NXDomain 0/1/0 (121)
21:37:00.433051 dns.syd.optusnet.com.au.domain > 192.168.0.100.33841: 37786 NXDomain 0/1/0 (102)

and this goes on... and on... and on....

can anyone give me any idea where I could start to try and find the service that is trying to access localhost and causing these needless ARP requests?

All the best,

Matt
 
Old 05-07-2004, 07:44 AM   #2
DocKarl
LQ Newbie
 
Registered: Aug 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Ha...

have answered my own question.

Had inadvertantly removed the reference to localhost from the etc/hosts file, some daemon somewhere was trying to do a loop-back using localhost every few seconds, and therefore caused the ARP.

adding the following line to the /etc/hosts file solved the problem:-

localhost 127.0.0.1

I wonder how many hundred GIGABYTES of bandwidth I must have blown to smithereens over the last two years of this machine being on 24/7 before I noticed it was flooding my ISP's DNS server with ARP requests? All of a sudden things seem a lot quicker.

Hope this helps someone else if they are a ninny also :-)

Matt
 
Old 05-07-2004, 07:55 AM   #3
DocKarl
LQ Newbie
 
Registered: Aug 2003
Posts: 14

Original Poster
Rep: Reputation: 0
I can't help but have a bit of a giggle at the irony of this one:-

The real world equivalent of what I've been doing for the last few years is posting a letter to the post office every four seconds, asking them to tell me where the hell I live, and putting my return address on the back of the envelope :-)

Matt
 
Old 05-07-2004, 11:50 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, those are not "ARP" requests: They're DNS requests. ARP is a link-layer protocol, layer2. DNS is a layer7 protocol (application layer).

A? localhost.qld.optushome.com.au. (48) (DF)
The "A?" doesn't stand for "ARP", it stands for "type-A Resource Record" (i.e. a name-to-IP mapping).

You can tell this be looking here
192.168.0.100.33839 > dns.syd.optusnet.com.au.domain
tcpdump will appened the service name to the hostname in the output, unless you turn off resolution with -n. "Domain" is the shortened name for "Domain Name Service".

Here's an example of an actual ARP request
09:49:48.468367 arp who-has sekhmet.amaunetsgothique.com tell 10.8.1.12
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
a lot of ARP requests- why? zivota Linux - Networking 5 09-26-2005 08:06 AM
Network Flooded With ARP requests aronnok Linux - Security 3 12-25-2004 04:54 PM
Why am I flooding my network with ARP packets? DocKarl Linux - Networking 0 05-07-2004 06:47 AM
How to monitor the ARP requests from other than eth1 Bassam Linux - Networking 4 02-10-2004 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration