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 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 Any suggestion towards this would help! |
Quote:
Code:
dig srv _http._tcp.brfconcept.lv |
is there a way to point all services to an port?
|
Quote:
Code:
_http._tcp IN SRV 0 5 27017 testing.brfconcept.lv. |
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? |
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. |
OK, but is there a way to direct the clients target to the 27017 port for every type of connection?
|
I guess you can forward all ports from your router to the port want
|
thats an problem because i need the games default port untouched :)
|
All times are GMT -5. The time now is 01:36 AM. |