LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-13-2002, 02:50 PM   #1
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 116

Rep: Reputation: 16
Question address match list syntax for bind


What is the proper syntax for an address match list when using a.b.c.d/xx?

In other words, what is the significance of the prefix (a.b.c.d) vs. the number after the "/"?

Thanks,
 
Old 07-14-2002, 09:23 PM   #2
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
Wow you really made that hard to understand what your quesion was, but I think I got it.

What your referring to is the subnet mask after the IP address. The subnet mask is used to identify a network of computers.

In the most basic form there are 4 possiblele values that can be placed after the "/"

/255.0.0.0 or /8
/255.255.0.0 or /16
/255.255.255.0 or /24
/255.255.255.255 or /32

Each has its on significance in setting up IP rules. (Say in BIND configs) The first of the options means to match only the first octet of an IP address.

e.x Say IP address 145.78.45.67 attempts to query your DNS server. If you told BIND to only to allow "145.78.45.67/255.0.0.0". That machine with that IP address would certainly make it through. But if your intention as to ONLY allow that machine, you would be thoroughly disappointed. Like I said before, using the subnet mask 255.0.0.0 designates IPs that match the first octet (ie 145) So an the IP address 145.5.6.3 or 145.6.42.9 or 145.7.3.9 would all be able to query your DNS server.

Now the next subnet mask 255.255.0.0 or /16 means to allow the first two octets. (ex 145.78) Then any IP address thats starts with 145.78 would get through.

If your still following me then you should be able to figure out that the next subnet mask 255.255.255.0 or /24 designates the match of the first three octets (145.78.45).

And finally 255.255.255.255 or /32 means to EXACTLY match an IP address. That is the best subnet mask to use if you intend to restrict to one IP address.


--tarballedtux
 
Old 07-16-2002, 09:08 AM   #3
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 116

Original Poster
Rep: Reputation: 16
Thumbs up

That's exactly what I was looking for--thanks!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 bruvajon Linux - Software 34 11-30-2011 03:08 PM
VMWare Linux Kernel address space mis-match madiyaan Linux - Newbie 4 06-19-2006 09:03 PM
What is the Package Search pattern Syntax for dpkg --list? Akhran Debian 3 08-23-2005 05:23 AM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
sendmail > bad address syntax xushi Slackware 7 03-31-2005 01:42 PM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration