In the context of the Linux BIND application, a Service record (SRV record) is a specification of data in the Domain Name System defining the location, i.e. the hostname and port number, of servers for specified services.
Questions tagged [srv]
70 questions
47
votes
5 answers
Why do browsers not use SRV records?
Why do browsers not use SRV records?
It seems like a minimal amount of work and it will make the server-side implementation of reliable websites much simpler.
For example, you can specify tiers, such that www.example.com resolves to 1.2.3.4 and…

fadedbee
- 42,671
- 44
- 178
- 308
10
votes
4 answers
How do I resolve an SRV record in Python?
Something which doesn't rely on native libraries would be better.

Gili Nachum
- 5,288
- 4
- 31
- 33
8
votes
3 answers
How do I create an SRV record in DNS with C#
I am using WMI to create different types of DNS records but am having a problem with SRV records. I keep getting a "Not found" error whenever I pass the DomainName parameter. The domain name looks good to me.
Has anyone ever successfully done…

mcass20
- 1,668
- 1
- 22
- 39
7
votes
1 answer
Resolving SRV records with iOS SDK
I want to resolve DNS SRV records using the iOS SDK.
I've already tried the high-level Bonjour APIs Apple is providing, but they're not what I need. Now I'm using DNS SD.
void *processQueryForSRVRecord(void *record) {
DNSServiceRef sdRef;
…

melix
- 83
- 1
- 4
7
votes
2 answers
Lightweight way to resolve DNS SRV records on Android
What is the most resource-efficient way to do SRV record lookups on Android, e.g. in an XMPP client like yaxim?
I am aware of:
JNDI, which is part of JavaSE but not in Android
dnsjava, which adds 800 KByte of class files (580KByte after ProGuard,…

ge0rg
- 1,816
- 1
- 26
- 38
7
votes
1 answer
Java DNS Lookup for SRV records
In the below java code, I am making a DNS SRV record lookup to resolve the target domain name and associated port for a given domain name such as root@1000000000.blubluzone.com. The lookup function indicated with /HERE/ below returns null somehow…

F. Aydemir
- 2,665
- 5
- 40
- 60
6
votes
3 answers
performs a NAPTR query
This may look like a very simple question, but I haven't found the answer on the Internet.
Anyone can give me clues how to performs a NAPTR query for a SIP domain? (this is mostly for DNS lookup), or any references also great for me (This one exist…

dejoong
- 2,213
- 5
- 25
- 24
5
votes
3 answers
Using DNS SRV records with C#
Is there a built in (to the .net framework) class or function to resolve a SRV entry to the corresponding records?
IE: _dmsc._tcp.network.local to an array of information (host, port, weight, priority)

Mitch
- 21,223
- 6
- 63
- 86
4
votes
1 answer
puppetserver ca commands fail connecting to https://puppet:8140 when using SRV record solution
I use SRV solution in my puppet architecture. When trying to setup a new puppet master and CA and view my certificates I get this error:
puppetserver ca list --all
Fatal error when running action 'list'
Error: Failed connecting to…

deez
- 1,472
- 3
- 18
- 28
4
votes
1 answer
PJSIP iOS unable to resolve SRV record in IPV6 network
With the apple's new requirement that all iOS apps should work in IPV6 network, I have a VOIP client app based on PJSIP that is completely broken. I'm trying to solve the issues step by step. The problem i want to fix first is the SRV resolution.
I…

adsun
- 773
- 9
- 30
4
votes
2 answers
How can I import ares.h file on mosquitto protocol?
I've implemented mosquitto on my ARM target board.
I added -DWITH_SRV in Makefile, because I need to add SRV Loopup function on my system.
But it returns error
fatal error: ares.h: No such file or directory
I have no idea how can I fix it.
Just…

Sanggil Lee
- 41
- 1
- 4
3
votes
1 answer
Howto look up an SRV record pointing to an IPv6 address
My C++ application has to lookup a DNS SRV record pointing to an IPv6 address. From what I researched so far, the res_search() family of functions is the way to go.
Does anyone have an example how to prepare such a query and how to extract the IPv6…

Gene Vincent
- 5,237
- 9
- 50
- 86
3
votes
1 answer
Get DNS SRV record using JNDI
I am trying to get SRV records from a DNS server using JNDI.
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
env.put("java.naming.provider.url",…

Prasanna
- 3,703
- 9
- 46
- 74
3
votes
1 answer
Can I Use an IP Address in a SRV Record?
I'm trying to understand whether or not is it possible to use an IP address in a SRV record's "Target" section instead of an hostname.
I noticed that when querying an SRV record (using dig or dnsjava) on a DNS server I'm getting the resulted…

Shmulik Klein
- 3,754
- 19
- 34
3
votes
2 answers
SRV record lookup with PHP
If you type
nslookup -type=SRV _xmpp-server._tcp.gmail.com
(or use the dig command in OSX) you get some SRV records relating to google chat
I would like to replicate this functionality in PHP, does anyone have any good ideas how to do this?
I would…

adam
- 22,404
- 20
- 87
- 119