LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-11-2011, 09:56 AM   #1
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Rep: Reputation: 0
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!
 
Old 04-12-2011, 03:59 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
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
 
Old 04-12-2011, 07:39 AM   #3
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Original Poster
Rep: Reputation: 0
is there a way to point all services to an port?
 
Old 04-12-2011, 08:40 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Quote:
Originally Posted by Amerika View Post
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
 
Old 04-13-2011, 08:11 AM   #5
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Original Poster
Rep: Reputation: 0
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?

Last edited by Amerika; 04-13-2011 at 08:17 AM.
 
Old 04-13-2011, 08:50 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
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.
 
Old 04-13-2011, 12:06 PM   #7
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Original Poster
Rep: Reputation: 0
OK, but is there a way to direct the clients target to the 27017 port for every type of connection?
 
Old 04-13-2011, 02:02 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
I guess you can forward all ports from your router to the port want
 
Old 04-16-2011, 04:07 PM   #9
Amerika
LQ Newbie
 
Registered: Dec 2010
Posts: 18

Original Poster
Rep: Reputation: 0
thats an problem because i need the games default port untouched
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind DNS Server - answer a few records for another domain? humbletech99 Linux - Server 15 06-21-2010 02:15 AM
Querying a DNS server for ALL records the_gripmaster Linux - General 10 02-20-2009 10:07 AM
sample SRV configuration in DNS Server jheng_dleon Linux - Software 1 07-14-2007 05:09 AM
Adding 'static' records to a Cacheing only DNS server? Paul_Randle Linux - Networking 3 08-19-2005 07:18 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration