{"id":1046,"date":"2014-05-09T22:58:44","date_gmt":"2014-05-09T22:58:44","guid":{"rendered":"http:\/\/www.skyswitch.com\/?p=1046"},"modified":"2021-09-09T17:57:40","modified_gmt":"2021-09-09T17:57:40","slug":"lookup-sip-servers-dns-srv-records","status":"publish","type":"post","link":"https:\/\/skyswitch.com\/blog\/lookup-sip-servers-dns-srv-records\/","title":{"rendered":"How to Lookup a SIP Server&#8217;s DNS SRV Records"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Many service providers rely on DNS SRV records for failover and resiliency purposes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using DNS SRV records, compatible equipment (such as SIP phones and SIP PBX servers) can map several SIP servers&nbsp;to a single SIP domain. Each SIP server&nbsp;can be assigned a priority, and if the server&nbsp;with the highest priority cannot be reached, the SIP phone or proxy trying to reach the user within the domain will attempt to reach the next host defined within the SRV record.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the SIP domain outboundproxy.com uses DNS SRV records to point to geographically diverse SIP servers located in New York and Dallas. &nbsp;If the New York servers is unavailable, then compatible equipment will automatically failover to the Dallas server. &nbsp; More information about DNS SRV records is available at&nbsp;<a href=\"http:\/\/www.voip-info.org\/wiki\/view\/DNS+SRV\" target=\"_blank\" rel=\"noopener\">voip-info.org<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As an end user, it may not be obvious that a SIP domain is using SRV records.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At one time, performing&nbsp;a DNS SRV lookup required knowledge of the Unix command&nbsp;<a href=\"http:\/\/linux.about.com\/od\/commands\/l\/blcmdl1_dig.htm\" target=\"_blank\" rel=\"noopener\">dig<\/a>, a tool used to interrogate DNS name servers, &nbsp;performs DNS lookups, and display the answers that are returned from the name server(s) that were queried. &nbsp; A typical dig query might appear as follows:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.27.43-AM.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"285\" src=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.27.43-AM.png\" alt=\"Screen Shot 2014-05-10 at 12.27.43 AM\" class=\"wp-image-1047\" title=\"\" srcset=\"https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.27.43-AM.png 669w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.27.43-AM-300x128.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/a><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Because dig is a Linux tool, performing a DNS SRV lookup was not easy for Windows users and users unfamiliar with Unix commands. &nbsp; However, it has become &nbsp;easier to perform&nbsp;a DNS SRV lookup using any of several available online portals. &nbsp; Although there are many online DNS lookup tools, there are not many that will allow you to search for DNS SRV records. &nbsp;Two of the portals that I rely on for this purpose are &nbsp;<a href=\"http:\/\/centralops.net\/co\/nslookup.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/centralops.net\/co\/nslookup.aspx<\/a>&nbsp; and <a href=\"http:\/\/www.digwebinterface.com\" target=\"_blank\" rel=\"noopener\">http:\/\/www.digwebinterface.com<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using a DNS lookup tool &nbsp;allows you to enter a SIP domain name into the web search form, and see all of the SIP servers that are configured. &nbsp;The results are often quite interesting (if you are curious about that sort of thing).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a two-step process. &nbsp;First you must lookup the DNS pointer (PTR) record for the domain. &nbsp;The result of this lookup will tell you if the domain is advertising any SIP services. &nbsp;Then you must lookup the service domain that was contained in the pointer record.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example,&nbsp;looking up all the DNS services for sip.outboundproxy.com will yeild a name pointer (PTR) record showing that there is an SRV record available. &nbsp;The result shown below (taken from&nbsp;<a href=\"http:\/\/centralops.net\/co\/nslookup.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/centralops.net\/co\/nslookup.aspx<\/a>)&nbsp; tells us that a SIP&nbsp;service record exists.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"414\" src=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/sip.outboundproxy.com-NsLookup-results.png\" alt=\"sip.outboundproxy.com NsLookup results\" class=\"wp-image-2443\" title=\"\" srcset=\"https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip.outboundproxy.com-NsLookup-results.png 1017w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip.outboundproxy.com-NsLookup-results-300x122.png 300w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip.outboundproxy.com-NsLookup-results-768x313.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Not all SIP service providers bother to publish a pointer (PTR) record since it is &nbsp;just as easy to search for the service (SRV) record straight away. &nbsp;To search for a SIP SRV record, just use the prefix &#8216;_sip._udp.&#8217; &nbsp;or&nbsp;&#8216;_sip._tcp.&#8217; (depending on whether you are interested in using UDP or TCP for the SIP connection) before the domain name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For ample, to search for the SRV records of sip.outboundproxy.com, you would need to enter _sip._udp.sip.outboundproxy.com. &nbsp; The results from three different DNS online lookup tools are shown in the images below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1112\" height=\"549\" src=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results.png\" alt=\"_sip._udp.sip.outboundproxy.com NsLookup results\" class=\"wp-image-2444\" title=\"\" srcset=\"https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results.png 1112w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results-300x148.png 300w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results-1024x506.png 1024w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/sip._udp.sip_.outboundproxy.com-NsLookup-results-768x379.png 768w\" sizes=\"auto, (max-width: 1112px) 100vw, 1112px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.39.19-AM.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"411\" src=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.39.19-AM.png\" alt=\"Screen Shot 2014-05-10 at 12.39.19 AM\" class=\"wp-image-1049\" title=\"\" srcset=\"https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.39.19-AM.png 886w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.39.19-AM-300x139.png 300w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-12.39.19-AM-768x356.png 768w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/a><figcaption>DNS SRV lookup using http:\/\/dnsrlookup.onlinetoolkit.org\/<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-1.00.41-AM.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"404\" src=\"https:\/\/skyswitch.wpengine.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-1.00.41-AM.png\" alt=\"Screen Shot 2014-05-10 at 1.00.41 AM\" class=\"wp-image-1056\" title=\"\" srcset=\"https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-1.00.41-AM.png 689w, https:\/\/skyswitch.com\/wp-content\/uploads\/2014\/05\/Screen-Shot-2014-05-10-at-1.00.41-AM-300x176.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/a><figcaption>DNS SRV lookup using http:\/\/www.digwebinterface.com<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Many service providers rely on DNS SRV records for failover and resiliency purposes. Using DNS SRV records, compatible equipment (such as SIP phones and SIP PBX servers) can map several SIP servers&nbsp;to a single SIP domain. Each SIP server&nbsp;can be assigned a priority, and if the server&nbsp;with the highest priority cannot be reached, the SIP&hellip;<\/p>\n","protected":false},"author":7,"featured_media":10529,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[139,140],"class_list":["post-1046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dns-lookup-tool","tag-dns-srv"],"acf":[],"_links":{"self":[{"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/posts\/1046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/comments?post=1046"}],"version-history":[{"count":0,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/posts\/1046\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/media\/10529"}],"wp:attachment":[{"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/media?parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/categories?post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skyswitch.com\/wp-json\/wp\/v2\/tags?post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}