tcp_send: bind(query_source): Permission denied
Mark.Andrews at nominum.com
Mark.Andrews at nominum.com
Tue Feb 20 22:44:20 UTC 2001
Well you obviously did not search the archives. Apply the
following patch.
Mark
Index: src/bin/named/ns_main.c
===================================================================
RCS file: /proj/cvs/isc/bind8/src/bin/named/ns_main.c,v
retrieving revision 8.142
retrieving revision 8.143
diff -u -r8.142 -r8.143
--- ns_main.c 2001/01/15 20:06:25 8.142
+++ ns_main.c 2001/02/02 03:57:06 8.143
@@ -751,6 +751,7 @@
int
tcp_send(struct qinfo *qp) {
struct qstream *sp;
+ struct sockaddr_in src;
int on = 1, n;
ns_debug(ns_log_default, 1, "tcp_send");
@@ -777,8 +778,9 @@
"tcp_send: setsockopt(SO_REUSEPORT): %s",
strerror(errno));
#endif
- if (bind(sp->s_rfd, (struct sockaddr *)&server_options->query_source,
- sizeof server_options->query_source) < 0)
+ src = server_options->query_source;
+ src.sin_port = htons(0);
+ if (bind(sp->s_rfd, (struct sockaddr *)&src, sizeof(src)) < 0)
ns_info(ns_log_default, "tcp_send: bind(query_source): %s",
strerror(errno));
if (fcntl(sp->s_rfd, F_SETFD, 1) < 0) {
>
> I too am having this happen and only when I upgraded. I do not know why
> and I tried various sources for answers to no avail.
>
> Kenneth Porter wrote:
> >
> > I'm running 8.2.3 and I'm getting this message a few times a day in my
> > /var/log/messages file. I've seen some patches on the list to deal with
> > this, but my main concern is why this is showing up in a syslog file
> > when I have all logging channels set up to go to unique files in
> > /var/log/named. Does this message not go through a BIND logging channel
> > but straight to syslog?
> >
> > Ken
> > mailto:shiva at well.com
> > http://www.sewingwitch.com/ken/
> > [If answering a mailing list posting, please don't cc me your reply. I'll t
> ake my answer on the list.]
>
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at nominum.com
More information about the bind-users
mailing list