[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] simple dns server



Interesting, i hadn't tested multiple zone files before, I'll add an issues to the ocaml-dns issues tracker


I've been testing out imaplet,Âhttps://github.com/gregtatcam/imaplet-lwtÂbut i don't yet use it in production for my personal mail

thanks :)

On 11 May 2015 at 13:16, Nick Betteridge <buzzheavyyear@xxxxxxxxxxx> wrote:
Thanks Mindy & Heidi,

I got this to work with a single zone - however, when I tried using DNS.serve_with_zonefiles and used dig, dig only returned the dns values of the last zone in the list, ie:

let zonefiles = ["example1.com.zone"; "example2.net.zone"]

module Main (C:CONSOLE) (K:KV_RO) (S:STACKV4) = struct

 module U = S.UDPV4
 module DNS = Dns_server_mirage.Make(K)(S)

 let start c k s =
ÂÂÂ let t = DNS.create s k in
ÂÂÂ DNS.serve_with_zonefiles t ~port ~zonefiles
end

gives:

[example1.com]
dig @127.0.0.1 www.example1.com

; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> @127.0.0.1 www.example1.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 3848
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.example1.com.ÂÂÂ ÂÂÂ INÂÂÂ A

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 11 12:09:29 UTC 2015
;; MSG SIZEÂ rcvd: 36

and
Â
[example2.net]
dig @127.0.0.1 www.example2.net

; <<>> DiG 9.9.5-3ubuntu0.2-Ubuntu <<>> @127.0.0.1 www.example2.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19560
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 1500
;; QUESTION SECTION:
;www.example2.net.ÂÂÂ ÂÂÂ INÂÂÂ A

;; ANSWER SECTION:
www.example2.net.ÂÂÂ 3600ÂÂÂ INÂÂÂ AÂÂÂ 192.168.1.11

;; AUTHORITY SECTION:
example2.net.ÂÂÂ ÂÂÂ 3600ÂÂÂ INÂÂÂ NSÂÂÂ ns2.example2.net.
example2.net.ÂÂÂ ÂÂÂ 3600ÂÂÂ INÂÂÂ NSÂÂÂ ns1.example2.net.

;; ADDITIONAL SECTION:
ns1.example2.net.ÂÂÂ 3600ÂÂÂ INÂÂÂ AÂÂÂ 192.168.1.11
ns2.example2.net.ÂÂÂ 3600ÂÂÂ INÂÂÂ AÂÂÂ 192.168.1.11

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 11 12:11:52 UTC 2015
;; MSG SIZEÂ rcvd: 131


Incidentally, I see your personal dns server zone file includes an MX record - I also need a person mails server for my cubieboard, what server are you running?

Cheers (and thanks)
Nick



--
Regards
Heidi
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.