[Samba] Fwd: MX record samba4

Konstantin Pobudzey 5836000 at gmail.com
Sun May 5 04:54:39 MDT 2013


Hello All

Using patch from https://bugzilla.samba.org/show_bug.cgi?id=9485#c6
worked for me.

However query for mx record are different from external server:



1) From samba4 box :
[root at dcmsc caiman]# dig TEST.inc mx

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6 <<>> TEST.inc mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62841
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;TEST.inc.                   IN      MX

;; ANSWER SECTION:
TEST.inc.            0       IN      MX      10 mail.TEST.inc.


;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun May  5 14:35:32 2013
;; MSG SIZE  rcvd: 66

2)#from another  server

s3020n vizavi # dig TEST.inc mx

; <<>> DiG 9.9.2 <<>> TEST.inc mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11914
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 13, ADDITIONAL: 23

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;TEST.inc.                   IN      MX

;; ANSWER SECTION:
TEST.inc.            0       IN      MX      10 mail.TEST.inc.


;; AUTHORITY SECTION:
.                       489658  IN      NS      m.root-servers.net.
.                       489658  IN      NS      k.root-servers.net.
.                       489658  IN      NS      f.root-servers.net.
.                       489658  IN      NS      c.root-servers.net.
.                       489658  IN      NS      d.root-servers.net.
.                       489658  IN      NS      b.root-servers.net.
.                       489658  IN      NS      e.root-servers.net.
.                       489658  IN      NS      l.root-servers.net.
.                       489658  IN      NS      a.root-servers.net.
.                       489658  IN      NS      j.root-servers.net.
.                       489658  IN      NS      h.root-servers.net.
.                       489658  IN      NS      i.root-servers.net.
.                       489658  IN      NS      g.root-servers.net.

;; ADDITIONAL SECTION:
a.root-servers.net.     489668  IN      A       198.41.0.4
a.root-servers.net.     489668  IN      AAAA    2001:503:ba3e::2:30
b.root-servers.net.     489668  IN      A       192.228.79.201
c.root-servers.net.     489668  IN      A       192.33.4.12
d.root-servers.net.     489668  IN      A       199.7.91.13
d.root-servers.net.     489668  IN      AAAA    2001:500:2d::d
e.root-servers.net.     489668  IN      A       192.203.230.10
f.root-servers.net.     489668  IN      A       192.5.5.241
f.root-servers.net.     489668  IN      AAAA    2001:500:2f::f
g.root-servers.net.     489668  IN      A       192.112.36.4
h.root-servers.net.     489668  IN      A       128.63.2.53
h.root-servers.net.     489668  IN      AAAA    2001:500:1::803f:235
i.root-servers.net.     489668  IN      A       192.36.148.17
i.root-servers.net.     489668  IN      AAAA    2001:7fe::53
j.root-servers.net.     489668  IN      A       192.58.128.30
j.root-servers.net.     489668  IN      AAAA    2001:503:c27::2:30
k.root-servers.net.     489668  IN      A       193.0.14.129
k.root-servers.net.     489668  IN      AAAA    2001:7fd::1
l.root-servers.net.     489668  IN      A       199.7.83.42
l.root-servers.net.     489668  IN      AAAA    2001:500:3::42
m.root-servers.net.     489668  IN      A       202.12.27.33
m.root-servers.net.     489668  IN      AAAA    2001:dc3::35

;; Query time: 221 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun May  5 06:36:37 2013
;; MSG SIZE  rcvd: 748

So AUTHORITY section of this answer should be samba4 box...
Is this a bug ?

Please advise .
Thanks,
Konstantin.



----- Forwarded Message -----
From: "Konstantin Pobudzey" <5836000 at gmail.com>
To: samba at lists.samba.org
Sent: Saturday, May 4, 2013 1:19:55 PM
Subject: MX record samba4



1) samba-tool dns add  dcmsc.test.inc test.inc test.inc MX 'mail.test.inc 10'


2) samba-tool dns query  dcmsc.test.inc test.inc test.inc MX



3) [root at dcmsc caiman]# samba-tool dns query  dcmsc.test.inc test.inc test.inc MX
Password for [administrator at test.INC]:
  Name=, Records=1, Children=0
    MX: mail.test.inc. (5) (flags=600000f0, serial=10, ttl=0)
  Name=_msdcs, Records=0, Children=0
  Name=_sites, Records=0, Children=1
  Name=_tcp, Records=0, Children=4
  Name=_udp, Records=0, Children=2
  Name=dcmsc, Records=0, Children=0
  Name=DCSPB, Records=0, Children=0
  Name=DomainDnsZones, Records=0, Children=2
  Name=ForestDnsZones, Records=0, Children=2
  Name=mail, Records=0, Children=0
  Name=XP-77-86, Records=0, Children=0




4)#Dig from same box( From another box same result )
[root at dcmsc caiman]# dig @127.0.0.1 mx test.inc

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.6 <<>> @127.0.0.1 mx test.inc
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOTIMP, id: 62639
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;test.inc.                   IN      MX

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat May  4 21:12:29 2013
;; MSG SIZE  rcvd: 29

#From samba4 box logs 
[2013/05/04 15:46:43,  0] ../source4/dns_server/dns_query.c:103(create_response_rr)
  Got unhandled type 15 query.


Any advise ?

Thanks,
Konstantin


More information about the samba mailing list