subsonic.org subdomain ip wrong?

Need help? Post your questions here.

Moderator: moderators

subsonic.org subdomain ip wrong?

Postby texaganian » Fri Jan 14, 2011 10:43 pm

Shouldn't the subsonic.org subdomain a-rec point to your external interface?

Mine is pointing to an IP completely unrelated to any of my interfaces. Any conjectures why?
texaganian
 
Posts: 10
Joined: Fri Jan 14, 2011 3:38 am

Postby texaganian » Sat Jan 15, 2011 3:10 pm

more details...

I have a public static IP address (xxx.93.1.234) which is routed to my internal network through a pair of OpenBSD virtual machines running PF.

Subsonic is running on a virtual Centos 5.5 server on the internal network (192.168.xxx.42), configured for port 4202.

The PF machines are configured to relay connections to the external IP and subsonic port (xxx.93.1.234:4202) to the subsonic server at 192.168.xxx.42:4202.

This all works fine for external web browser access using either the external IP or my own DNS entry for that IP.

But if I try to use a subsonic.org address things go very wonky.

I enable the option in Subsonic, choose a subdomain name and click save. Subsonic reports "arley.subsonic.org responded successfully".

But, when I do a lookup on arley.subsonic.org I get a completely unrelated IP address (97.74.125.134).

--<snip>--
Code: Select all
[adealey@MS02 ~]$ dig arley.subsonic.org

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> arley.subsonic.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10464
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;arley.subsonic.org.            IN      A

;; ANSWER SECTION:
arley.subsonic.org.     2908    IN      A       97.74.125.134

;; Query time: 8 msec
;; SERVER: 192.168.42.11#53(192.168.42.11)
;; WHEN: Sat Jan 15 09:59:45 2011
;; MSG SIZE  rcvd: 52

[adealey@MS02 ~]$

--<snip>--

I can check it from another client on another network configured for different DNS servers and the result is the same...

--<snip>--
Code: Select all
[adealey@Ext-Centos-00 ~]$ dig arley.subsonic.org

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> arley.subsonic.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60126
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;arley.subsonic.org.            IN      A

;; ANSWER SECTION:
arley.subsonic.org.     3600    IN      A       97.74.125.134

;; AUTHORITY SECTION:
subsonic.org.           46686   IN      NS      ns1.domaindiscover.com.
subsonic.org.           46686   IN      NS      ns2.domaindiscover.com.

;; ADDITIONAL SECTION:
ns1.domaindiscover.com. 453     IN      A       216.104.162.3
ns2.domaindiscover.com. 453     IN      A       216.104.163.3

;; Query time: 30 msec
;; SERVER: 72.3.128.240#53(72.3.128.240)
;; WHEN: Sat Jan 15 10:06:44 2011
;; MSG SIZE  rcvd: 138

[adealey@Ext-Centos-00 ~]$

--<snip>--

I waited 72 hours to ensure it wasn't an old address that hadn't been updated somehow and there was no change.

I can unregister that address and re-register the server with a new subdomain name and it still registers the same incorrect IP in the a-rec.

Very bizarre.

Anybody have any clue what is going on here?
texaganian
 
Posts: 10
Joined: Fri Jan 14, 2011 3:38 am

Postby Skywatcher » Sun Jan 16, 2011 10:40 pm

97.74.125.134 is the subsonic.org IP adress. That will be the rec for all xxx.subsonic.org, including arley.subsonic.org.

When a browser request arrives at 97.74.125.134 the subsonic.org server will see which subdomain (in this case "arley") was in the request and will then redirect the connection to your current IP address. In your case it's a static one (xxx.93.1.234) and will always be the same.
For the vast majority of people it'll be a dynamic address currently given by that subsonic user's ISP.

All redirect procedures are done at the subsonic.org server, so all subdomanis point to the same IP address. All is well. :wink:
Skywatcher
 
Posts: 41
Joined: Tue Feb 16, 2010 7:08 am

Postby texaganian » Tue Jan 18, 2011 6:44 pm

DOH!

Ok, slightly different question... any way to make all this work on some port other than 80?
texaganian
 
Posts: 10
Joined: Fri Jan 14, 2011 3:38 am

Postby bushman4 » Tue Jan 18, 2011 6:50 pm

Sure... change the port that Subsonic uses (using the Subsonic-agent in the tray if using windows) and then make sure that the port you choose is opened on your firewall and allowing traffic inbound to your subsonic server's IP address.

Then the next time the registration happens with the Subsonic.org servers, the redirection will be updated and will redirect to http://your.ip.add.ress:PortNumber

HTH,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA


Return to Help

Who is online

Users browsing this forum: No registered users and 11 guests