LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-09-2005, 12:00 PM   #16
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344

You might find this table useful:

Code:
   Prot Src   Dst   Use
   udp  53    53    Queries between servers (eg, recursive queries)
                    Replies to above
   tcp  53    53    Queries with long replies between servers, zone 
                    transfers Replies to above
   udp  >1023 53    Client queries (sendmail, nslookup, etc ...)
   udp  53    >1023 Replies to above
   tcp  >1023 53    Client queries with long replies
   tcp  53    >1023 Replies to above

   Note: >1023 is for non-priv ports on Un*x clients. On other client 
         types, the limit may be more or less.
So for an IPTABLES firewall, you would need:

Code:
# DNS
-A INPUT -p tcp -m tcp --dport 53                          --syn -j ACCEPT
-A INPUT -p udp -m udp --dport 53                                -j ACCEPT
-A INPUT -p udp -m udp -s 192.168.1.0/24 --sport 53 -d 0/0       -j ACCEPT
-A INPUT -p tcp -m tcp -s 192.168.1.0/24 --sport 53 -d 0/0 --syn -j ACCEPT
I used the 192.168.1.0 subnet from your earlier sample above. Replace with any authorized subnets.
 
Old 04-11-2005, 09:56 AM   #17
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
you also need to point your clients at your DNS server, and you need to register your server as SOA with a registrar if you want to publish your records for other web users.
 
  


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
Fedora Core 3 DNS startup wgaivin Linux - Networking 4 04-12-2005 09:55 AM
fedora core 2 / apache / dns / mail server rioguia Linux - Security 2 01-18-2005 02:01 PM
DNS in Fedora core 2 caocon Linux - Networking 11 11-12-2004 12:27 AM
On Fedora Core 2 what DNS server am I using? jlepich Linux - Networking 2 06-22-2004 05:26 PM
Dns is not working in Fedora Core 1 Mahaul Fedora 2 05-14-2004 03:41 PM

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

All times are GMT -5. The time now is 02:26 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