How to create a SRV record in a DNS server?

My domain provider is willing to create a SRV record in the DNS server, for routing sip calls (sip:henk@oegema.com) to my Asterisk server.

This is what the provider wrote me:

[i]Dear Henk Oegema

Thank you for contacting us.

We cannot help you to setup your SRV record, this is not a service we provide our customers, if you want to have a SRV record, you have to tell us what info you want to enter, then we will enter exactly that information (Corrected so it fits our nameservers of course), but we do not offer to help you figure out what your SRV record should look like.[/i]

Because I don’t have access to that server, the SRV record has to be correct straight from the start, to avoid multiples mails from me to my domain provider. (and I have never done this before)

Here is some data from my system:

  1. My server has a dynamic address, updated by a DynDNS server. (henkoegema.ftpaccess.cc)
    2.Domain: henk.oegema.com
  2. Sip calls have to be routed to sip:henk@oegema.com.

I think (but please correct me) that such a record is as follows:


henk.oegema.com. IN SOA ns1.ascio.net. hostmaster.ascio.net.(
20060613000
10800
5400
3600000
14400 )

henk.oegema.com. 166214 IN NS ns1.ascio.net.
henk.oegema.com. 166214 IN NS ns2.ascio.net.
;
ns1.ascio.net. 155412 IN A 80.82.97.156
;
_sip._udp.henk.oegema.com. 43200 IN SRV 0 0 5060 xxxxx.xxx.xxx (??)
_sip._tcp.henk.oegema.com. 43200 IN SRV 0 0 5060 xxxxx.xxx.xxx (??)


(ns1.ascio.net & ns2.ascio.net are the names of the DNS server containg the record)

  1. Has the entry in the SRV record to be ‘henk.oegema.com.’ or just ‘oegema.com.’ (without: henk)
  2. Where (and how) is my dynamic ip address coming in the picture (via henkoegema.ftpaccess.cc) ??

I am sure there are (a lot?) mistakes here, because I have only theoretical knowledge about this issue.

Thanks for any advise

Regards
Henk Oegema
henk.oegema.com
e-mail: henk@oegema.com
sip: henk@oegema.com (This is what I want to achieve !)

:smiley:

I’m a VoIP/SIP newbie, but if your server’s IP address is dynamic while the DNS server is static, it won’t work. You’re not going to ask your ISP to update the relevant SRV record every time your IP changes.

But wait for the smart people to answer :smile:

I’m a VoIP/SIP newbie, but if your server’s IP address is dynamic while the DNS server is static, it won’t work. You’re not going to ask your ISP to update the relevant SRV record every time your IP changes.

But wait for the smart people to answer :smile:[/quote]

I asked my provider that question.Here is his answer:

[i]Dear Henk Oegema
Thank you for contacting us.
It is possible to use your address “henkoegema.ftpaccess.cc”, you just have to specify how the SRV record should be setup.
Should you have further questions or comments, please contact us again.

Best regards
Speednames Online Customer Service[/i]

There are providers who offer sip registration with them(like: sipme.nl)
This is an alternative. But then my e-mail address and sip address are not equal.(and that is what I want)

Rgds.
Henk

Hi,

I dont understand how your current dns setup is done, but it may not work:
nslookup henk.oegema.com
Server: 192.168.2.21
Address: 192.168.2.21#53

Non-authoritative answer:
*** Can’t find henk.oegema.com: No answer

(same for oegema.com)

Musicman

[quote=“musicman”]Hi,

I dont understand how your current dns setup is done, but it may not work:
nslookup henk.oegema.com
Server: 192.168.2.21
Address: 192.168.2.21#53

Non-authoritative answer:
*** Can’t find henk.oegema.com: No answer

(same for oegema.com)

Musicman[/quote]

This is the printout I used to propose a SRV record earlier in my first thread:

henkoegema@linux:~> dig henk.oegema.com

; <<>> DiG 9.3.1 <<>> henk.oegema.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9046
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;henk.oegema.com. IN A

;; AUTHORITY SECTION:
oegema.com. 9628 IN SOA ns1.ascio.net. hostmaster.ascio.net. 2006012300 10800 5400 3600000 14400

;; Query time: 13 msec
;; SERVER: 192.168.123.254#53(192.168.123.254)
;; WHEN: Thu Jun 15 10:52:37 2006
;; MSG SIZE rcvd: 93

henkoegema@linux:~>

Regards
Henk

Hi Henk,

this response does not tell how to reach your server either, and www.henk.oegema.com is a service that points to yet somewhere else.
Supporting a changing ip usually is done by dyndns providers (yes, they can handle your domain name at nominal cost), but I doubt they let you create SRV records.
You could perhaps change the lifetime of the record to 1 minute, but I doubt that ascio are set up for fast changing records.

Musicman

[quote=“musicman”]Hi Henk,

this response does not tell how to reach your server either, and www.henk.oegema.com is a service that points to yet somewhere else.
Supporting a changing ip usually is done by dyndns providers (yes, they can handle your domain name at nominal cost), but I doubt they let you create SRV records.
You could perhaps change the lifetime of the record to 1 minute, but I doubt that ascio are set up for fast changing records.

Musicman[/quote]

You are correct of course that my dyndns will not (can not ?) create a SRV record.
That has to be done by my domain provider.

But suppose that my server ip adress is static (f.e. 81.164.185.132)
Then I put the question again as follows:

Is the SRV record below correct ? (probably not)


henk.oegema.com. IN SOA ns1.ascio.net. hostmaster.ascio.net.(
20060613000
10800
5400
3600000
14400 )

henk.oegema.com. 166214 IN NS ns1.ascio.net.
henk.oegema.com. 166214 IN NS ns2.ascio.net.
;
ns1.ascio.net. 155412 IN A 80.82.97.156
;
_sip._udp.henk.oegema.com. 43200 IN SRV 0 0 5060 81.164.185.132
_sip._tcp.henk.oegema.com. 43200 IN SRV 0 0 5060 81.164.185.132


If it is not correct please help me to correct it.

Thanks
Henk