allmon.ini - not resolving hostnames?
Hi All; I have allmon running on a couple of my systems. On one of my reflectors, I show activity from a remote system (where the remote is also running allmon). Recently, I discovered that on my reflector, the activity from the remote is no longer being displayed. After a bit of digging, I found that if I specify an IP address for 'host=x.x.x.x' then it works fine. However, if I enter a hostname, allmon doesn't seem to resolve the hostname and I get an 'unable to connect' error message. If I ping or telnet the hostname from a shell command, it resolves to the correct address, confirming that DNS resolution is working fine. Any ideas? Thanks! Ramesh.
Hi Ramesh Some more info is needed here! Allmon runs as code on the web server, which does not have to run on the asterisk server. Where is the web server with the allmon code in relation to the asterisk server. Are they using the same dns? This is important. I did convert one of my allmon entries from an IP address to a hostname and it had no problem. If you do an nslookup on the system with the allmon code, what does it resolve the hostname to? Keith On 8/27/13 8:49 PM, "Ramesh Dhami (VA3UV)" <Ramesh@va3uv.com> wrote:
Hi All;
I have allmon running on a couple of my systems. On one of my reflectors, I show activity from a remote system (where the remote is also running allmon).
Recently, I discovered that on my reflector, the activity from the remote is no longer being displayed.
After a bit of digging, I found that if I specify an IP address for 'host=x.x.x.x' then it works fine. However, if I enter a hostname, allmon doesn't seem to resolve the hostname and I get an 'unable to connect' error message.
If I ping or telnet the hostname from a shell command, it resolves to the correct address, confirming that DNS resolution is working fine.
Any ideas?
Thanks!
Ramesh. _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
-- keith@goobie.org Keith Goobie Richmond Hill, ON, CANADA
Hi Keith; See below... On 27/08/2013 9:41 PM, Keith Goobie wrote:
Hi Ramesh
Some more info is needed here!
Allmon runs as code on the web server, which does not have to run on the asterisk server.
<-- Yep, I just happen to be running it on both systems - (one my reflector, the webpage is accessible publicly via the web, on my system at home, the webpage is only accessible to me / internally).
Where is the web server with the allmon code in relation to the asterisk server. Are they using the same dns? This is important.
<-- I have the allmon code (with the publicly accessible webserver) running on node 2248 - at the Hamilton Health Sciences Centre. DNS is as provided by the hospital with the Google public DNS server as the secondary DNS. On the system at home, the DNS is as provided by Ma Bell.
I did convert one of my allmon entries from an IP address to a hostname and it had no problem.
If you do an nslookup on the system with the allmon code, what does it resolve the hostname to?
<-- nslookup on both systems shows the correct IP address. Cheers! Ramesh.
Based on the comment that you are running the apache web server and the reflector system on the same server, I would assume that in the allmon.ini file, you would be connecting to 127.0.0.1 or localhost. This is more efficient. Now that I know the configuration, I am suspecting that this is not the system with the DNS issue. Some further questions: Is the problem at home or the hospital? Is the host you are having a problem with hhsstipend.hhsc.ca RQ supplied me a host IP to connect to the server to look at allmon (199.21.x.x) which reverse maps to FQDN hostname above, but if you look for an A record for the host name it maps to a different IP. Are you aware of this? Which IP are you trying to connect with? Are you running a web server at home? Not sure where you may have va3uv.com hosted. Is allmon running on that web server? Cheers Keith On 8/27/13 9:55 PM, "Ramesh Dhami (VA3UV)" <Ramesh@va3uv.com> wrote:
Hi Keith;
See below...
On 27/08/2013 9:41 PM, Keith Goobie wrote:
Hi Ramesh
Some more info is needed here!
Allmon runs as code on the web server, which does not have to run on the asterisk server.
<-- Yep, I just happen to be running it on both systems - (one my reflector, the webpage is accessible publicly via the web, on my system at home, the webpage is only accessible to me / internally).
Where is the web server with the allmon code in relation to the asterisk server. Are they using the same dns? This is important.
<-- I have the allmon code (with the publicly accessible webserver) running on node 2248 - at the Hamilton Health Sciences Centre. DNS is as provided by the hospital with the Google public DNS server as the secondary DNS.
On the system at home, the DNS is as provided by Ma Bell.
I did convert one of my allmon entries from an IP address to a hostname and it had no problem.
If you do an nslookup on the system with the allmon code, what does it resolve the hostname to?
<-- nslookup on both systems shows the correct IP address.
Cheers!
Ramesh.
-- keith@goobie.org Keith Goobie Richmond Hill, ON, CANADA
Hi Keith; Since we are now getting into the specifics, I will respond off-list. Cheers, Ramesh. On 27/08/2013 10:56 PM, Keith Goobie wrote:
Based on the comment that you are running the apache web server and the reflector system on the same server, I would assume that in the allmon.ini file, you would be connecting to 127.0.0.1 or localhost. This is more efficient. Now that I know the configuration, I am suspecting that this is not the system with the DNS issue.
Some further questions:
Is the problem at home or the hospital? Is the host you are having a problem with hhsstipend.hhsc.ca RQ supplied me a host IP to connect to the server to look at allmon (199.21.x.x) which reverse maps to FQDN hostname above, but if you look for an A record for the host name it maps to a different IP. Are you aware of this? Which IP are you trying to connect with?
Are you running a web server at home? Not sure where you may have va3uv.com hosted. Is allmon running on that web server?
Cheers Keith
On 8/27/13 9:55 PM, "Ramesh Dhami (VA3UV)" <Ramesh@va3uv.com> wrote:
Hi Keith;
See below...
On 27/08/2013 9:41 PM, Keith Goobie wrote:
Hi Ramesh
Some more info is needed here!
Allmon runs as code on the web server, which does not have to run on the asterisk server.
<-- Yep, I just happen to be running it on both systems - (one my reflector, the webpage is accessible publicly via the web, on my system at home, the webpage is only accessible to me / internally).
Where is the web server with the allmon code in relation to the asterisk server. Are they using the same dns? This is important.
<-- I have the allmon code (with the publicly accessible webserver) running on node 2248 - at the Hamilton Health Sciences Centre. DNS is as provided by the hospital with the Google public DNS server as the secondary DNS.
On the system at home, the DNS is as provided by Ma Bell.
I did convert one of my allmon entries from an IP address to a hostname and it had no problem.
If you do an nslookup on the system with the allmon code, what does it resolve the hostname to?
<-- nslookup on both systems shows the correct IP address.
Cheers!
Ramesh.
participants (2)
-
Keith Goobie -
Ramesh Dhami (VA3UV)