[arm-allstar] Registered IP address vs DNS lookup

David McGough kb4fxc at inttek.net
Fri Jul 23 23:57:19 EDT 2021


Hi Robert,

I'm not sure which public IP for your network is primary and which is 
secondary??  You mention a subnet: 184.190.59.0/24, below??  No address in 
that subnet seems to be active?

>From what I can see, your private node IP address is getting NAT'ed to 
63.147.119.75 for outbound traffic.  For example, I checked dns-query just 
now:

[root at RPi4B-dev ~]# dns-query 52222
+OK|radio at 63.147.119.75:4569/52222,63.147.119.75

To further confirm this result, from the bash prompt on your node, try:

wget -O- -q http://myip.hamvoip.org

For example, on a system here:

[root at wg223 ~]# wget -O- -q http://myip.hamvoip.org
12.17.28.223

So, the public IP for TCP/80 traffic on this system is 12.17.28.223.


You can also test the lookups performed from within asterisk, for example, 
from the asterisk CLI prompt:

RPi3A*CLI> rpt lookup 52222
Node: 1900, Method:   DNS, Actual:   DNS, Data: radio at 63.147.119.75:4569/52222,63.147.119.75

NOTE that if a different IP address is reported here from what you 
obtained earlier, check the contents of the [nodes] stanza in the 
/etc/asterisk/rpt.conf file for an unneeded entry.


If you should be getting a different public IP, that's an issue on your
Internet router.


73, David KB4FXC





On Fri, 23 Jul 2021, "Robert N7GET via ARM-allstar" wrote:

> 
First of all full disclosure: I am not proficient at AllStarLink. I do have a solid understanding of Linux & TCP/IP networking.  I have no doubt that the networking is working correctly.  

Our ASL node is behind a firewall with two connections to the Internet, one’s a primary and the other is a failover.  Various utilities show that the primary IP address appears to be registered with the ASL servers.  But for some reason, the failover address is the IP address being returned by DNS lookups for our ASL node.  We've left the system up for more than a day as well as rebooted.

Here are some commands and results for reference:

Here’s the output of 'iax2 show registry command':
Host                  dnsmgr  Username               Perceived             Refresh  State
34.105.111.212:4569   Y       52222                  63.147.119.75:4569        180  Registered

And iax2 reload:
[Jul 23 08:11:55] NOTICE[26018]: chan_iax2.c:11573 set_config: Ignoring bindport on reload
[Jul 23 08:11:55] NOTICE[26018]: chan_iax2.c:11632 set_config: Ignoring bindaddr on reload
  == adding dns manager for 'register.allstarlink.org <http://register.allstarlink.org/>'
  == Loaded firmware 'iaxy.bin'
[Jul 23 08:11:55] NOTICE[342]: chan_iax2.c:7446 iax2_ack_registry: Registered IAX2 to '34.105.111.212', who sees us as 63.147.119.75:4569 with no messages waiting

check_reg.sh:

Node - 52222 at IP address- 63.147.119.75, Port- 4569 is "Registered" at Server
IP- 34.105.111.212 (register-west1-b.allstarlink.org <http://register-west1-b.allstarlink.org/>.), Port- 4569

And check_connect.sh:

		Check Internet Connectivity

	Your local IP address is - 192.168.220.2
	Your public IP address is - 63.147.119.75

	Current nameserver(s)

	nameserver 127.0.0.1

	Checking DNS Servers

	DNS 127.0.0.1 returns 74.91.126.182 for hamvoip.org <http://hamvoip.org/>
	DNS 127.0.0.1 returns hvdallas2.hamvoip.org <http://hvdallas2.hamvoip.org/>. for register.hamvoip.org <http://register.hamvoip.org/>
	DNS 127.0.0.1 returns 12.17.29.162 for stats.hamvoip.org <http://stats.hamvoip.org/>
	DNS 127.0.0.1 returns 34.105.111.212 for allstarlink.org <http://allstarlink.org/>
	DNS 127.0.0.1 returns stats-west.allstarlink.org <http://stats-west.allstarlink.org/>. for stats.allstarlink.org <http://stats.allstarlink.org/>
	DNS 127.0.0.1 returns 34.105.111.212 for register.allstarlink.org <http://register.allstarlink.org/>
	DNS 127.0.0.1 returns 142.250.188.238 for google.com <http://google.com/>
	DNS 8.8.8.8 returns 74.91.126.182 for hamvoip.org <http://hamvoip.org/>
	DNS 8.8.8.8 returns hvdallas2.hamvoip.org <http://hvdallas2.hamvoip.org/>. for register.hamvoip.org <http://register.hamvoip.org/>
	DNS 8.8.8.8 returns 12.17.29.162 for stats.hamvoip.org <http://stats.hamvoip.org/>
	DNS 8.8.8.8 returns 34.105.111.212 for allstarlink.org <http://allstarlink.org/>
	DNS 8.8.8.8 returns stats-west.allstarlink.org <http://stats-west.allstarlink.org/>. for stats.allstarlink.org <http://stats.allstarlink.org/>
	DNS 8.8.8.8 returns 162.248.92.131 for register.allstarlink.org <http://register.allstarlink.org/>
	DNS 8.8.8.8 returns 142.250.188.238 for google.com <http://google.com/>
	DNS 8.8.4.4 returns 74.91.126.182 for hamvoip.org <http://hamvoip.org/>
	DNS 8.8.4.4 returns hvdallas2.hamvoip.org <http://hvdallas2.hamvoip.org/>. for register.hamvoip.org <http://register.hamvoip.org/>
	DNS 8.8.4.4 returns 12.17.29.162 for stats.hamvoip.org <http://stats.hamvoip.org/>
	DNS 8.8.4.4 returns 34.105.111.212 for allstarlink.org <http://allstarlink.org/>
	DNS 8.8.4.4 returns stats-west.allstarlink.org <http://stats-west.allstarlink.org/>. for stats.allstarlink.org <http://stats.allstarlink.org/>
	DNS 8.8.4.4 returns 34.105.111.212 for register.allstarlink.org <http://register.allstarlink.org/>
	DNS 8.8.4.4 returns 142.250.188.238 for google.com <http://google.com/>

	Important Destination Checks

	localhost is reachable at 127.0.0.1
	hamvoip.org <http://hamvoip.org/> is reachable at 74.91.126.182
	register.hamvoip.org <http://register.hamvoip.org/> is reachable at 74.91.126.182
	stats.hamvoip.org <http://stats.hamvoip.org/> is reachable at 12.17.29.162
	allstarlink.org <http://allstarlink.org/> is reachable at 34.105.111.212
	stats.allstarlink.org <http://stats.allstarlink.org/> is reachable at 34.105.111.212
	register.allstarlink.org <http://register.allstarlink.org/> is not reachable
	google.com <http://google.com/> is reachable at 142.250.188.238

	NOT ALL SITES REACHABLE!
 DNS lookup returns - +OK|radio at 184.190.59.236 <mailto:OK|radio at 184.190.59.236>:4569/52222,184.190.59.236

So the .75 (primary) address seems to be registered, but the DNS lookup is still returning .236 (failover) for 52222.  

Any ideas?

TIA, Robert N7GET
_______________________________________________

ARM-allstar mailing list
ARM-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2/3/4 web page - http://hamvoip.org




More information about the ARM-allstar mailing list