Sean Leach
2005-Feb-25 18:38 UTC
parse error when specifying more than 8 ip's on command line
If I try and specify more than 8 IP's to bind to on the command line, I get a parse error. Example: ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 works fine ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 -a 127.0.0.9 nsd: error: cannot parse address '127.0.0.1' so you can see the parse problem. Any thoughts? Please CC me on the response. Thanks!
Colm MacCarthaigh
2005-Feb-26 10:54 UTC
parse error when specifying more than 8 ip's on command line
MAX_INTERFACES is set to 8 in configure.ac, so it's a compiled in limit. You can manually edit config.h between the configure and make stages if you'd like more than 8 interfaces. On Fri, Feb 25, 2005 at 10:38:17AM -0800, Sean Leach wrote:> If I try and specify more than 8 IP's to bind to on the command line, > I get a parse error. Example: > > ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 > -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 > > works fine > > ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 > -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 -a 127.0.0.9 > nsd: error: cannot parse address '127.0.0.1' > > so you can see the parse problem. Any thoughts? Please CC me on the response. > > Thanks! > _______________________________________________ > nsd-users mailing list > nsd-users at NLnetLabs.nl > http://open.nlnetlabs.nl/mailman/listinfo/nsd-users >-- Colm MacC?rthaigh / HEAnet, Teach Brooklawn, / Innealt?ir L?onra +353 1 6609040 / B?thar Shelbourne, B?C, IE / http://www.hea.net/
Phil Howard
2005-Feb-28 12:32 UTC
parse error when specifying more than 8 ip's on command line
On Fri, Feb 25, 2005 at 10:38:17AM -0800, Sean Leach wrote: | If I try and specify more than 8 IP's to bind to on the command line, | I get a parse error. Example: | | ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 | -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 | | works fine | | ./nsd -a 127.0.0.1 -a 127.0.0.2 -a 127.0.0.3 -a 127.0.0.4 -a 127.0.0.5 | -a 127.0.0.6 -a 127.0.0.7 -a 127.0.0.8 -a 127.0.0.9 | nsd: error: cannot parse address '127.0.0.1' | | so you can see the parse problem. Any thoughts? Please CC me on the response. I'm assuming you used redundant 127/8 addresses to not divulge your real addresses. There is a hard coded limit of 8 addresses. You can modify the source to get more. Or you can just run multiple instances of nsd. Since the -a option is on the command line, that's quite easy to do. You might even get a bit faster performance that way. -- ----------------------------------------------------------------------------- | Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ | | (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ | -----------------------------------------------------------------------------