Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


tek



107 posts

Master Geek


#195649 28-Apr-2016 11:42
Send private message

Ok, so I'll try explain this as best I can with the limited time I have to make this post...

 

I have a CommandFusion LAN Bridge that sends me push notifications for various events, but it only supports entering an IP for a push service. Recently Growl changed the way they do things and they require you to use their host-name which is api.prowlapp.com. If I resolve that into their IP using nslookup, I get: 54.225.207.133, 23.21.249.174 and 23.23.183.201. If I use any of those in the IP field, nothing gets pushed. After talking to their support they said we must use the host-name api.prowlapp.com, and that the resolved IPs will change from time to time.

 

 

 

So... Is there any way either in my router (Draytek Vigor 2120) or an app I could run on my Windows Server to allow me to resolve an IP I put in my LAN Bridge to prowls host-name api.prowlapp.com?

 

 

 

Cheers for any help and hope it makes some sense undecided

 

-tek


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
2815 posts

Uber Geek

Trusted
Lifetime subscriber

  #1543310 28-Apr-2016 11:47
Send private message

I've never heard of such a beast.

 

You might have to rework your notifications....  if you are testing to ensure a LAN Bridge is up, perhaps a ping tester (such as EMCO Ping Monitor) that sends an email if it does not get a result and have the Growl service receive the email and generate a push notification from this?  I've never used or even heard of Growl/Prowl before, but it looks useful.





"4 wheels move the body.  2 wheels move the soul."

“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

29119 posts

Uber Geek

Moderator
Trusted
Biddle Corp
Lifetime subscriber

  #1543312 28-Apr-2016 11:48
Send private message

What device on your network is handling DNS? Your router or server?

 

 


 
 
 
 


2815 posts

Uber Geek

Trusted
Lifetime subscriber

  #1543313 28-Apr-2016 11:48
Send private message

Or hit up CommandFusion for a firmware update to support DNS.

 

Or hit up Growl to keep their legacy systems going as you will not be alone.





"4 wheels move the body.  2 wheels move the soul."

“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

tek



107 posts

Master Geek


  #1543325 28-Apr-2016 12:08
Send private message

@sbiddle my router is. Though I have been tempted to build a pfsense router if that would do what I'm wanting.. Or could I run a secondary DNS in Hyper-V on my server to do what I need? And just point the LAN bridge to that.

 

@Dynamic Growl pretty much said no :( and guided me to google how to resolve a IP to a hostname in my router, which doesn't seem to be a thing on most routers.


2092 posts

Uber Geek


  #1543329 28-Apr-2016 12:12
Send private message

Your symptom does not make sense.

 

In general, when you use a DNS name with an application to do anything networking, the flow would be:

 

1. Lookup Name

 

2. Send to IP Address

 

With the exception being proxy type traffic, where name resolution doesn't happen at the client (usually).

 

If your app isn't working, potentially it is encoding the name in the request somehow and that is being rejected, but at a networking level what you are trying to do does not make any sense. By the time a packet is leaving your router it is being sent from an IP, to an IP.

 

Sounds like you have 2 issues:

 

1. Your app doesn't like sending to an IP address and

 

2. The IPs for your endpoint will change from time to time.


tek



107 posts

Master Geek


  #1543348 28-Apr-2016 12:33
Send private message

Okay, right that's what I thought. I've just been told by a few people when researching this that it is possible. I just don't know enough about networking to know what to search for...
It used to work with an IP address before Growl changed their setup, but I guess now my only option is to wait for CommandFusion to provide an update for the LAN Bridge?

 

Also, would there be any reason why using one of the resolved IP's doesn't work? I've tried all 3 to no sucess.

 

Cheers guys :)


93 posts

Master Geek


  #1543355 28-Apr-2016 12:45
Send private message

 

Also, would there be any reason why using one of the resolved IP's doesn't work? I've tried all 3 to no sucess.

 

 

Since their web server uses host headers, so you need to pass the hostname


 
 
 
 


440 posts

Ultimate Geek


  #1544685 30-Apr-2016 23:35
Send private message

Hi, I'm not sure whats you mean but you can resolve using Hosts file in C:\Windows\System32\drivers\etc.

 

 

 

Check the use of this, Google is your friend.


2815 posts

Uber Geek

Trusted
Lifetime subscriber

  #1544706 1-May-2016 08:22
Send private message

sqishy:

 

Hi, I'm not sure whats you mean but you can resolve using Hosts file in C:\Windows\System32\drivers\etc.

 

 

Are you sure?  I've been using the HOSTS file for the last 20 years to have an application look for a server by name and the HOSTS file tells it the IP address to use.  The OP wants to do the opposite.





"4 wheels move the body.  2 wheels move the soul."

“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

691 posts

Ultimate Geek


  #1544819 1-May-2016 12:41
Send private message

tek:

 

Okay, right that's what I thought. I've just been told by a few people when researching this that it is possible. I just don't know enough about networking to know what to search for...
It used to work with an IP address before Growl changed their setup, but I guess now my only option is to wait for CommandFusion to provide an update for the LAN Bridge?

 

Also, would there be any reason why using one of the resolved IP's doesn't work? I've tried all 3 to no sucess.

 

Cheers guys :)

 

 

You say you did a NSLookup for the 3 IP addresses? If this is the case, that would be why they do not work!

 

A NS Lookup is a "Name Server Lookup", this will get you the IP addresses of the authoritative name servers in use for the domain, but not what you are after which is the IP address of the domain name.

 

The easiest way to find what you are after is to do a ping of the domain name via cmd (type the following in cmd - "ping api.prowlapp.com") and at the top it will resolve the IP address to ping. Use the IP address resolved by this command.

 

 

 

If possible you should always use the host name as they may change servers/the location of their hosted service, if this is the case you will have to go through this process again and manually change the IP address.


3154 posts

Uber Geek

Trusted
Lifetime subscriber

  #1544832 1-May-2016 12:52
Send private message

If you put HAProxy or similar reverse proxy in between you should be able to sort it.




and


tek



107 posts

Master Geek


  #1544949 1-May-2016 17:59
Send private message

ArcticSilver:

 

tek:

 

Okay, right that's what I thought. I've just been told by a few people when researching this that it is possible. I just don't know enough about networking to know what to search for...
It used to work with an IP address before Growl changed their setup, but I guess now my only option is to wait for CommandFusion to provide an update for the LAN Bridge?

 

Also, would there be any reason why using one of the resolved IP's doesn't work? I've tried all 3 to no sucess.

 

Cheers guys :)

 

 

You say you did a NSLookup for the 3 IP addresses? If this is the case, that would be why they do not work!

 

A NS Lookup is a "Name Server Lookup", this will get you the IP addresses of the authoritative name servers in use for the domain, but not what you are after which is the IP address of the domain name.

 

The easiest way to find what you are after is to do a ping of the domain name via cmd (type the following in cmd - "ping api.prowlapp.com") and at the top it will resolve the IP address to ping. Use the IP address resolved by this command.

 

 

 

If possible you should always use the host name as they may change servers/the location of their hosted service, if this is the case you will have to go through this process again and manually change the IP address.

 

 

Now I feel dumb haha! I know NSLookup finds the nameservers, but for some reason I still used it. Ping would have been the correct tool to use -.- Though I just did a ping and it gave me the same IP as one of the nameservers, though I'll try it again.

 

 

 

BarTender: If you put HAProxy or similar reverse proxy in between you should be able to sort it.

 

I will look into HAProxy :) thanks

 

 


568 posts

Ultimate Geek


  #1544950 1-May-2016 18:00
Send private message

ArcticSilver:

 

tek:

 

Okay, right that's what I thought. I've just been told by a few people when researching this that it is possible. I just don't know enough about networking to know what to search for...
It used to work with an IP address before Growl changed their setup, but I guess now my only option is to wait for CommandFusion to provide an update for the LAN Bridge?

 

Also, would there be any reason why using one of the resolved IP's doesn't work? I've tried all 3 to no sucess.

 

Cheers guys :)

 

 

You say you did a NSLookup for the 3 IP addresses? If this is the case, that would be why they do not work!

 

A NS Lookup is a "Name Server Lookup", this will get you the IP addresses of the authoritative name servers in use for the domain, but not what you are after which is the IP address of the domain name.

 

The easiest way to find what you are after is to do a ping of the domain name via cmd (type the following in cmd - "ping api.prowlapp.com") and at the top it will resolve the IP address to ping. Use the IP address resolved by this command.

 

 

 

If possible you should always use the host name as they may change servers/the location of their hosted service, if this is the case you will have to go through this process again and manually change the IP address.

 

 

No, you are wrong about the three IP addresses.  Many web servers are distributed over multiple server boxes, and therefore have multiple IP addresses.  Not infrequently, such web server boxes are at different physical sites, so that when the Internet has a problem at one location, the other sites will still respond.  When you use a web browser to access a domain name that has multiple IP addresses, it will do a DNS lookup and use the first of the returned addresses.  If that fails to respond, if it is a good web browser, it will try again with the next address.  In order to distribute the traffic amoungst the mutiple IP addresses, and also to help with browsers that only ever use the first IP address that was returned, most DNS servers will produce the IP addresses in a different order each time the same DNS lookup is done.  Here is what multiple lookups did from my personal DNS server (Bind 9.10.1 on Windows 7):

 

[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.21.249.174
          54.225.207.133
          23.23.183.201


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.23.183.201
          23.21.249.174
          54.225.207.133


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.23.183.201
          23.21.249.174
          54.225.207.133


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  54.225.207.133
          23.21.249.174
          23.23.183.201

 

The problem with accessing the api.prowlapp.com using only its IP address is a different matter altogether.  Many web servers, especially those that provide commercial hosting of many small (and cheap) web sites, do not provides a separate IP address for each site they host.  Instead, they use the same IP addresses, but differentiate the sites using the site name provided in the HTTP(S) messages received.  So if you manually look up the IP address for any of those sites, you will get the same set of IP addresses.  And if you then use only one of those IP addresses to access the site from your browser (or other software), it will not work because the HTTP(S) request will only contain the IP address of the site, but not its name, and the web server will not know which of the many sites it hosts is the one being requested.


691 posts

Ultimate Geek


  #1545011 1-May-2016 20:17
Send private message

fe31nz:

 

No, you are wrong about the three IP addresses.  Many web servers are distributed over multiple server boxes, and therefore have multiple IP addresses.  Not infrequently, such web server boxes are at different physical sites, so that when the Internet has a problem at one location, the other sites will still respond.  When you use a web browser to access a domain name that has multiple IP addresses, it will do a DNS lookup and use the first of the returned addresses.  If that fails to respond, if it is a good web browser, it will try again with the next address.  In order to distribute the traffic amoungst the mutiple IP addresses, and also to help with browsers that only ever use the first IP address that was returned, most DNS servers will produce the IP addresses in a different order each time the same DNS lookup is done.  Here is what multiple lookups did from my personal DNS server (Bind 9.10.1 on Windows 7):

 

[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.21.249.174
          54.225.207.133
          23.23.183.201


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.23.183.201
          23.21.249.174
          54.225.207.133


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  23.23.183.201
          23.21.249.174
          54.225.207.133


[P:\]nslookup api.prowlapp.com
Server:  savaidhg.6.jsw.gen.nz
Address:  2406:e001:1:2802::2

Non-authoritative answer:
Name:    api.prowlapp.com
Addresses:  54.225.207.133
          23.21.249.174
          23.23.183.201

 

The problem with accessing the api.prowlapp.com using only its IP address is a different matter altogether.  Many web servers, especially those that provide commercial hosting of many small (and cheap) web sites, do not provides a separate IP address for each site they host.  Instead, they use the same IP addresses, but differentiate the sites using the site name provided in the HTTP(S) messages received.  So if you manually look up the IP address for any of those sites, you will get the same set of IP addresses.  And if you then use only one of those IP addresses to access the site from your browser (or other software), it will not work because the HTTP(S) request will only contain the IP address of the site, but not its name, and the web server will not know which of the many sites it hosts is the one being requested.

 

 

 

 

Hi fe31nz,

 

I think you've confused a particular name server setup with the way NSLookup works and what it does.

 

You cannot have multiple IP addresses in the 1 A record (domain record). What you can however have is multiple name servers with different records.

 

Generally speaking, you will have multiple clustered name servers (for redundancy) which have the same record between them and hence when you do a NSLookup you get multiple addresses as there are multiple name servers that can tell you where the server for that domain is located.

 

The name server that is used is the one with the lowest metric that is responsive, hence you can go down the list for redundancy (for the name server, not the host).

 

 

 

In the case of accessing via a domain vs IP address, this could be a problem depending on how the API is hosted (as you have mentioned), however from what has been previously said it is highly likely this is not the case and that an IP address could work. This however is some thing that only the host will know.


What does this tag do
1026 posts

Uber Geek

Subscriber

  #1545038 1-May-2016 21:23
Send private message

Does the LAN Bridge let you do email notifications?
I use Boxcar for push notifications from a building management system which can send notifications via email/SMTP

 

They give you a secret address @bxc.io which gets pushed to iOS or Android apps

 

May be an alternative if no joy with Growl


 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic




News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35


UFB hits more than one million connections
Posted 6-Aug-2020 09:42


D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51


QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.