LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-09-2005, 08:11 AM   #1
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Rep: Reputation: 15
iptables DNS reverse lookups


When I do
Code:
iptables -L
, iptables looks up each ip address to resolve it to its domain name. Is there a way to disable this? It seems slow, and I don't have a need for it.

Thanks
 
Old 03-09-2005, 09:34 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
iptables --help

Look at the 11th line from the bottom.
 
Old 03-09-2005, 11:01 AM   #3
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
so, is option used when starting the iptables service? Or is it only used when using the -L option and such? Or is it used when creating a rule?

I just don't want to be banging away at DNS servers for every packet when I don't need to be.

Last edited by soren625; 03-09-2005 at 11:06 AM.
 
Old 03-09-2005, 02:08 PM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Yeah, whenever I want to look at my iptables listing, I use iptables -L -n, it has more to do with not wanting to wait for resolving of addresses than it does for worrying about pinging DNS servers.
 
Old 03-09-2005, 03:48 PM   #5
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
So, (this may be a stupid question) iptables doesn't try to resolve for each incoming packet does it?
 
Old 03-10-2005, 09:08 AM   #6
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
As far as I know, it doesn't. What it probably does is when iptables is started up it will resolve any DNS type names that it has, get the IP for it and cache that entry and use that.
 
Old 03-10-2005, 10:06 AM   #7
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
OK, thanks for the help.
 
  


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
Webalizer with DNS lookups jnichel Linux - Software 21 01-23-2009 11:13 AM
Reverse Lookups abhijeetudas Linux - Networking 1 10-18-2005 01:20 PM
Why do forward AND reverse lookups? veeruk101 Linux - Newbie 3 03-31-2005 10:22 AM
Allow DNS lookups through ipchains? ifm Linux - Security 4 08-09-2002 08:17 AM
Reverse DNS Lookups ascii2k Linux - Networking 2 08-08-2001 09:01 AM

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

All times are GMT -5. The time now is 12:39 AM.

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