LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DDNS in router does not renew IP address; host and dig report incorrect IP (http://www.linuxquestions.org/questions/linux-networking-3/ddns-in-router-does-not-renew-ip-address%3B-host-and-dig-report-incorrect-ip-491593/)

Bruce Hill 10-11-2006 06:33 PM

DDNS in router does not renew IP address; host and dig report incorrect IP
 
I have a dynamic IP assigned from my ISP. I'm using an ADSL modem and a LinkSys WRT54G router.

My router has a DDNS service function:
Quote:

DDNS Service: DDNS allows you to access your network using domain names instead of IP addresses. The service manages changing IP address and updates your domain information dynamically. You must sign up for service through TZO.com or DynDNS.org.
I have slackwarebox.dyndns.org as my domain name. For more than two years at my previous ISP I had a static IP. But they begin blocking many web sites, and I found out they were blocked for my IP only. So I switched to a dynamic IP. This was changing several times each week, though I never restarted either my ADSL modem or my router.

For some time, the DDNS service in my router updated DynDNS.org just fine. Eventually the DDNS service quit reassigning the IP address, with one of these displayed:
Quote:

Connecting to server
or
Connect to server fail
I moved recently, so I have a new ISP; and had hoped this problem would go away. However, it hasn't. And for the life of me I cannot find out what is causing this problem -- if I knew how to determine if it was the router, I'd just buy a new one. But some other things aren't right, either.

Here is what I presently get:
Code:

mingdao@silas:~$ links -dump http://www.whatismyipaddress.com/ | awk '/Your/ {print $4}'
is
*
Change
mingdao@silas:~$ lynx -dump http://www.whatismyipaddress.com/ | awk '/Your/ {print $4}'
mingdao@silas:~$

But in a web browser http://www.whatismyipaddress.com/ says Your IP address is 222.221.198.4

And http://www.dyndns.com/ says in My Services that it is 222.221.198.4

But host says:
Code:

mingdao@silas:~$ host slackwarebox.dyndns.org
slackwarebox.dyndns.org has address 65.160.219.113
slackwarebox.dyndns.org has address 207.12.88.98
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
;; reply from unexpected source: 201.98.161.68#53, expected 202.98.160.68#53
;; Warning: ID mismatch: expected ID 37442, got 62116
slackwarebox.dyndns.org has address 208.56.31.43

And I have:
Code:

mingdao@silas:~$ cat /etc/resolv.conf
nameserver 202.98.160.68 <- my ISP's DNS servers
nameserver 201.98.161.68 <- my ISP's DNS servers
nameserver 194.151.228.18 <- a DNS server in the Netherlands
nameserver 67.159.26.65 <- my email service's DNS server in America
nameserver 211.98.72.8 <- my old ISP's DNS servers in the city where I live
nameserver 211.98.72.7 <- my old ISP's DNS servers in the city where I live
nameserver 211.98.2.4 <- my old ISP's DNS servers in Beijing
nameserver 211.98.4.1 <- my old ISP's DNS servers in Beijing

And dig reports:
Code:

mingdao@silas:~$ dig slackwarebox.dyndns.org

; <<>> DiG 9.3.2 <<>> slackwarebox.dyndns.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45025
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;slackwarebox.dyndns.org.      IN      A

;; ANSWER SECTION:
slackwarebox.dyndns.org. 86400  IN      A      209.220.30.174

;; AUTHORITY SECTION:
dyndns.org.            36686  IN      NS      ns1.dyndns.org.
dyndns.org.            36686  IN      NS      ns2.dyndns.org.
dyndns.org.            36686  IN      NS      ns3.dyndns.org.
dyndns.org.            36686  IN      NS      ns4.dyndns.org.
dyndns.org.            36686  IN      NS      ns5.dyndns.org.

;; ADDITIONAL SECTION:
ns1.dyndns.org.        32684  IN      A      63.208.196.90
ns2.dyndns.org.        32018  IN      A      209.220.30.174
ns3.dyndns.org.        30805  IN      A      64.33.99.47
ns4.dyndns.org.        30825  IN      A      208.56.31.43
ns5.dyndns.org.        30825  IN      A      209.220.30.174

;; Query time: 97 msec
;; SERVER: 202.98.160.68#53(202.98.160.68)
;; WHEN: Thu Oct 12 07:25:39 2006
;; MSG SIZE  rcvd: 22

Can you tell me how to determine if:
(a) my router's DDNS service is broken?
(My router has the correct IP, but no longer changes it at DynDNS.org)
(b) why host and dig report the incorrect IP address?
(c) what to do to fix these errors?

Bruce Hill 10-16-2006 10:14 AM

bump 54321

Bruce Hill 10-18-2006 07:52 PM

bump 54321

andrewdodsworth 10-19-2006 02:53 AM

Well I did a host slackwarebox.dyndns.org just now and got:

slackwarebox.dyndns.org has address 222.221.208.104 - which looks in the correct range.

Using YOUR nameserver:

host slackwarebox.dyndns.org 202.98.160.68
Using domain server:
Name: 202.98.160.68
Address: 202.98.160.68#53
Aliases:

slackwarebox.dyndns.org has address 64.66.163.251
Using domain server:
Name: 202.98.160.68
Address: 202.98.160.68#53
Aliases:

slackwarebox.dyndns.org has address 64.33.99.47
Using domain server:
Name: 202.98.160.68
Address: 202.98.160.68#53
Aliases:

slackwarebox.dyndns.org has address 128.121.126.139

Therefore the fault is with the nameserver 202.98.160.68 - it's lying!

Bruce Hill 10-19-2006 02:59 AM

Okay, thanks! You pulled the correct IP address with host.

NB: Lying is a way of life in China.

But, please, what do I do to fix this from my location?

Should I enter some DNS server outside China in my router
and in /etc/resolv.conf?

andrewdodsworth 10-19-2006 05:02 AM

yes - just choose any nameserver that gives a good response.

Bruce Hill 10-19-2006 06:01 AM

I changed both in my router and /etc/resolv.conf to nameservers
outside of China; but still got bad returns. Can you post the IP
of your DNS server(s) for me to try?

andrewdodsworth 10-19-2006 09:06 AM

host slackwarebox.dyndns.org 212.23.3.100
Using domain server:
Name: 212.23.3.100
Address: 212.23.3.100#53
Aliases:

slackwarebox.dyndns.org has address 222.221.199.65
Using domain server:
Name: 212.23.3.100
Address: 212.23.3.100#53
Aliases:

That's my ISP's main DNS server
Another one is 212.23.6.100

Bruce Hill 10-19-2006 09:30 AM

I guess they've got me ...
Code:

mingdao@silas:~$ cat /etc/resolv.conf
nameserver 212.23.3.100
nameserver 212.23.6.100
nameserver 192.168.1.1
nameserver 67.159.26.65

mingdao@silas:~$ host slackwarebox.dyndns.org
slackwarebox.dyndns.org has address 169.132.13.103
;; Warning: ID mismatch: expected ID 54335, got 24764
;; Warning: ID mismatch: expected ID 54335, got 24764
;; Warning: ID mismatch: expected ID 54335, got 24764
;; Warning: ID mismatch: expected ID 54335, got 24764
;; Warning: ID mismatch: expected ID 54335, got 24764
;; Warning: ID mismatch: expected ID 54335, got 24764
slackwarebox.dyndns.org has address 192.67.198.6
;; Warning: ID mismatch: expected ID 56153, got 54335
;; Warning: ID mismatch: expected ID 56153, got 54335
;; Warning: ID mismatch: expected ID 56153, got 54335
;; Warning: ID mismatch: expected ID 56153, got 54335
;; Warning: ID mismatch: expected ID 56153, got 54335
;; Warning: ID mismatch: expected ID 56153, got 54335
slackwarebox.dyndns.org has address 203.105.1.21

mingdao@silas:~$ host slackwarebox.dyndns.org 212.23.6.100
Using domain server:
Name: 212.23.6.100
Address: 212.23.6.100#53
Aliases:

slackwarebox.dyndns.org has address 169.132.13.103
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: ID mismatch: expected ID 29324, got 14779
;; Warning: Message parser reports malformed message packet.
Using domain server:
Name: 212.23.6.100
Address: 212.23.6.100#53
Aliases:

;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
;; Warning: ID mismatch: expected ID 60484, got 29324
Using domain server:
Name: 212.23.6.100
Address: 212.23.6.100#53
Aliases:

slackwarebox.dyndns.org has address 65.160.219.113

mingdao@silas:~$ dig slackwarebox.dyndns.org

; <<>> DiG 9.3.2 <<>> slackwarebox.dyndns.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24648
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;slackwarebox.dyndns.org.      IN      A

;; ANSWER SECTION:
slackwarebox.dyndns.org. 86400  IN      A      192.67.198.6

;; Query time: 210 msec
;; SERVER: 212.23.3.100#53(212.23.3.100)
;; WHEN: Thu Oct 19 22:25:58 2006
;; MSG SIZE  rcvd: 57

:(

andrewdodsworth 10-19-2006 03:10 PM

Ouch! Looks like DNS queries are being intercepted. Looks like you need a tunnel to the rest of the world.


All times are GMT -5. The time now is 12:14 AM.