~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to update/1.2.12.04/maradns-1.2.12.03-upstream_port.patch

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
*** maradns-1.2.12.03/MaraDns.h Mon Jul 17 23:50:44 2006
2
 
--- maradns-1.2.12.04/MaraDns.h Thu Nov 23 10:03:00 2006
3
 
***************
4
 
*** 104,109 ****
5
 
--- 104,117 ----
6
 
     systems where I do not have root. */
7
 
  #define DNS_PORT 53
8
 
  
9
 
+ /* The port to use when contacting remove DNS servers; it may be desirable
10
 
+  * to have two instances of MaraDNS on the same IP when resolving the 
11
 
+  * dangling CNAME issue on a machine with only one loopback IP (You would
12
 
+  * think, with an entire Class A of the IP space reserved for loopback,
13
 
+  * more systems would have at least two loopback IPs.  You would be wrong)
14
 
+  */
15
 
+ #define UPSTREAM_PORT 53
16
 
17
 
  /* Whether we allow MaraDNS to run as a non root user; this is usually 
18
 
   * disabled, but can be enabled by uncommenting the following line */
19
 
  /* #define ALLOW_NON_ROOT */
20
 
*** maradns-1.2.12.04/server/recursive.c.orig   Thu Nov 23 10:00:28 2006
21
 
--- maradns-1.2.12.04/server/recursive.c        Thu Nov 23 10:03:25 2006
22
 
***************
23
 
*** 1584,1590 ****
24
 
      /* Create a server socket address to use with sendto() */
25
 
      memset(&server,0,sizeof(server));
26
 
      server.sin_family = AF_INET;
27
 
!     server.sin_port = htons(53);
28
 
      if((server.sin_addr.s_addr = htonl(remote_ip)) == INADDR_NONE) {
29
 
          if(rlog_level >= 4) {
30
 
              log_lock();
31
 
--- 1584,1590 ----
32
 
      /* Create a server socket address to use with sendto() */
33
 
      memset(&server,0,sizeof(server));
34
 
      server.sin_family = AF_INET;
35
 
!     server.sin_port = htons(UPSTREAM_PORT);
36
 
      if((server.sin_addr.s_addr = htonl(remote_ip)) == INADDR_NONE) {
37
 
          if(rlog_level >= 4) {
38
 
              log_lock();