Dynamic dns updates 127.0.0.1 to server

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

traidua
Posts: 8
Joined: Fri Jul 31, 2015 11:01 pm

Dynamic dns updates 127.0.0.1 to server

Post by traidua »

Hi all,

I have a small issue with dynamic DNS service. At least one a day, my router updates 127.0.0.1 to my no-ip server instead of the router IP.

The router is Netgear WNDR3700v1 with fw 1.7.2.

Please let me know what log or error files I need to look to debug this problem.

Thanks,
Traidua

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Dynamic dns updates 127.0.0.1 to server

Post by ispyisail »

more details please?

Evidence/screen shots

traidua
Posts: 8
Joined: Fri Jul 31, 2015 11:01 pm

Re: Dynamic dns updates 127.0.0.1 to server

Post by traidua »

Thanks for quick response.

Looks like the issue is at http://www.tracemyip.org which is used to get local ip.
Here is from logread.

Sat Aug 1 09:28:44 2015 daemon.info ddns_gargoyle[14700]: Checking whether update needed:
Sat Aug 1 09:28:44 2015 daemon.info ddns_gargoyle[14700]: service provider=no-ip.com
Sat Aug 1 09:28:44 2015 daemon.info ddns_gargoyle[14700]: domain=xx.ddns.net
Sat Aug 1 09:28:45 2015 daemon.info ddns_gargoyle[14700]: Successfully retrieved local ip from url: http://www.tracemyip.org
Sat Aug 1 09:28:45 2015 daemon.info ddns_gargoyle[14700]: local IP = 127.0.0.1
Sat Aug 1 09:28:45 2015 daemon.info ddns_gargoyle[14700]: remote IP = 68.102.xx.xx
Sat Aug 1 09:28:45 2015 daemon.info ddns_gargoyle[14700]: Update successful

traidua
Posts: 8
Joined: Fri Jul 31, 2015 11:01 pm

Re: Dynamic dns updates 127.0.0.1 to server

Post by traidua »

I wish these urls was in a conf file so I could update myself. Looks like I have to wait for a new build in order to get that fix.

check_local_ip_urls.c

char default_ip_lookup_url_data[][MAX_LOOKUP_URL_LENGTH] = {
"http://checkmyip.com",
"http://www.ipchicken.com",
"http://www.tracemyip.org",
"http://checkip.dyndns.org",
"http://checkip.org",
"http://www.ip-address.org",
"http://my-ip-address.com",
"http://www.selfseo.com/what_is_my_ip.php",
"http://aruljohn.com",
"http://www.lawrencegoetz.com/programs/ipinfo/",
"http://myipinfo.net",
"http://www.ip-1.com/",
"http://www.myipnumber.com",
"http://www.dslreports.com/whois",
"\0"
};

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Dynamic dns updates 127.0.0.1 to server

Post by nworbnhoj »

traidua wrote:I wish these urls was in a conf file so I could update myself.
http://www.gargoyle-router.com/phpbb/vi ... dns#p29181
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Dynamic dns updates 127.0.0.1 to server

Post by Lantis »

I think you're right.

I thought it was supposed to try that list in order though. Strange.

You could modify it yourself and recompile if you don't want to wait?
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

traidua
Posts: 8
Joined: Fri Jul 31, 2015 11:01 pm

Re: Dynamic dns updates 127.0.0.1 to server

Post by traidua »

Yes, I believe so. It tries that list in order and rotate the urls so that the traffic equally distributed to all sites in the list. I guess the issue is it doesn't get the error from http://www.tracemyip.org. Otherwise, it can try the next url.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Dynamic dns updates 127.0.0.1 to server

Post by Lantis »

I've tried out the tracemyip address and it works successfully.
Can we get details on your network setup. I want to know why it would falsely report a 127 address.


EDIT:
well bugger me... i reproduced your error lol.

Code: Select all

Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]: Forcing update:
Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]:       service provider=no-ip.com
Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]:       domain=testingddns.ddns.net
Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]:               Successfully retrieved local ip from url: http://www.tracemyip.org
Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]:       local IP  = 127.0.0.1
Wed Sep  9 17:13:14 2015 daemon.info ddns_gargoyle[5100]:       remote IP = 121.216.xxx.xxx
Wed Sep  9 17:13:17 2015 daemon.info ddns_gargoyle[5100]:       Update successful
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Dynamic dns updates 127.0.0.1 to server

Post by Lantis »

ahhhhhhh.... :oops:
You don't happen to be using my Adblock plugin do you..?

i just discovered that tracemyip.org is getting blocked by it as an ad. :oops:

I'll fix that in the next build lol.
If you aren't using that plugin then i can keep testing for you.


If you are, add "www.tracemyip.org" to the /etc/white.list file on your router and then from the router gui go to Firewall>Adblock and select "update blocklist".
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

traidua
Posts: 8
Joined: Fri Jul 31, 2015 11:01 pm

Re: Dynamic dns updates 127.0.0.1 to server

Post by traidua »

Lantis, thank you for looking at this issue.
I actually got a workaround. I am using ip_source and ip_interface so it works without go through that list.

Post Reply