LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu dns server SRV records (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-dns-server-srv-records-874328/)

Amerika 04-11-2011 09:56 AM

Ubuntu dns server SRV records
 
I am quite interested in one thing. I am trying to code my dns server that when i connect to one of my subdomains it connects not only to an ip adress but to an ip : port adress.
For this i tried using SRV record, but with lack of success.
Dns server specification:
OS Ubuntu server 10.10 and using bind9

I have configured everything so that my subdomains work on an ip address, but i need some of them to work on ip : port too.
in my brfconcept.lv.db file i used: (what i mentioned below isn't the full content of the file)
Code:

_http._udp  IN  SRV  0  5  27017  testing.brfconcept.lv
testing  IN  A 83.99.211.134


in my rev.0.168.192.in-addr.arpa i used: (what i mentioned below isn't the full content of the file)
Code:

134  IN  PTR testing.brfconcept.lv
What i would want is not just for 1 service to aim at at the 27017 port but all services if its possible, when you enter testing.brfconcept.lv Is that possible and what am i doing wrong?

Any suggestion towards this would help!

bathory 04-12-2011 03:59 AM

Quote:

_http._udp IN SRV 0 5 27017 testing.brfconcept.lv
The http is a tcp protocol. Other than that I don't see anything wrong. What gives:
Code:

dig srv _http._tcp.brfconcept.lv

Amerika 04-12-2011 07:39 AM

is there a way to point all services to an port?

bathory 04-12-2011 08:40 AM

Quote:

Originally Posted by Amerika (Post 4322123)
is there a way to point all services to an port?

You mean something like:
Code:

_http._tcp  IN  SRV  0  5  27017  testing.brfconcept.lv.
_smtp._tcp  IN  SRV  0  5  27017  testing.brfconcept.lv.
_imap._tcp  IN  SRV  0  5  27017  testing.brfconcept.lv.
_ldap._tcp  IN  SRV  0  0  27017  testing.brfconcept.lv.

Sure you can, but I cannot find a reason why you should do that

Amerika 04-13-2011 08:11 AM

For example i have an counter strike 1.6 server. Let's say the hostname of the server is brfconcept.lv. When you connect to that hostname it will direct you to ip:port, in this case it would direct you to the ip:27015 port, because it is the default one. What i need is that when i connect to testing.brfconcept.lv, it would connect to ip:27017. Why i asked can i forward all services is because i dont know what service is it and i know its UDP.

Is it possible to create this or somehow to analyze what service the game uses?

bathory 04-13-2011 08:50 AM

It is not going to work.
AFAIK only VoIP systems and in some cases windows AD are using SRV for services discovery and I don't think that a CS client is going to do a SRV lookup to find a CS server.

Amerika 04-13-2011 12:06 PM

OK, but is there a way to direct the clients target to the 27017 port for every type of connection?

bathory 04-13-2011 02:02 PM

I guess you can forward all ports from your router to the port want

Amerika 04-16-2011 04:07 PM

thats an problem because i need the games default port untouched :)


All times are GMT -5. The time now is 01:36 AM.