I’m trying to figure out the correct format for entering SRV records, but haven’t had much luck so far
None of the formats I tried entering worked; they either return “bad data” (that’s what dig says) or nothing at all.
Below is the output from dig when used on one of my own domains which is hosted on bind/named - you can see that the SRV records are returned correctly in the answer section:
root@yoda:~# dig _autodiscover._tcp.fr3d.org srv
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> _autodiscover._tcp.fr3d.org srv
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53003
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;_autodiscover._tcp.fr3d.org. IN SRV
;; ANSWER SECTION:
_autodiscover._tcp.fr3d.org. 38400 IN SRV 5 0 443 hobbie.fr3d.org.
_autodiscover._tcp.fr3d.org. 38400 IN SRV 5 0 443 leia.fr3d.org.
;; ADDITIONAL SECTION:
leia.fr3d.org. 16560 IN A 78.129.202.60
;; Query time: 13 msec
;; SERVER: 10.0.0.100#53(10.0.0.100)
;; WHEN: Sun Jan 30 17:57:45 2011
;; MSG SIZE rcvd: 129
This is a friend’s domain, hosted on IWorx’s djbdns, which doesn’t work:
(IWorx config: http://www.fr3d.org/ss/lando/InterWorx-CP__DNS_Records__dor.ky_-_Mozilla_Firefox_4.0_Beta_10_9189.png )
When I put the text into a hex editor, the text of the SRV records I entered looks like it’s mostly present, but the data is unusable by any apps that use SRV records.
root@yoda:~# dig @78.129.202.211 _autodiscover._tcp.dor.ky srv
;; Got bad packet: extra input data
159 bytes
2f eb 85 00 00 01 00 02 00 02 00 00 0d 5f 61 75
74 6f 64 69 73 63 6f 76 65 72 04 5f 74 63 70 03
64 6f 72 02 6b 79 00 00 21 00 01 c0 0c 00 21 00
01 00 00 a8 c0 00 16 00 05 00 00 01 bb 04 6c 65
69 61 04 66 72 33 64 03 6f 72 67 00 00 c0 0c 00
21 00 01 00 00 a8 c0 00 18 00 05 00 00 01 bb 06
68 6f 62 62 69 65 04 66 72 33 64 03 6f 72 67 00
00 c0 1f 00 02 00 01 00 00 a8 c0 00 10 03 6e 73
32 04 6c 33 33 74 02 6d 65 02 75 6b 00 c0 1f 00
02 00 01 00 00 a8 c0 00 06 03 6e 73 31 c0 81
Has anyone else had any luck getting SRV records working? Or know what format they should be entered in?