LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-11-2006, 06:33 PM   #1
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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?
 
Old 10-16-2006, 10:14 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
bump 54321
 
Old 10-18-2006, 07:52 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
bump 54321
 
Old 10-19-2006, 02:53 AM   #4
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
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!
 
Old 10-19-2006, 02:59 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
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?
 
Old 10-19-2006, 05:02 AM   #6
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
yes - just choose any nameserver that gives a good response.
 
Old 10-19-2006, 06:01 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
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?
 
Old 10-19-2006, 09:06 AM   #8
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
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
 
Old 10-19-2006, 09:30 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Original Poster
Rep: Reputation: 124Reputation: 124
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
 
Old 10-19-2006, 03:10 PM   #10
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware release/renew of IP address Ishkabibble Linux - Networking 8 09-28-2005 09:30 AM
Where can I get dig/host from? MadCactus Linux - Networking 2 07-03-2004 09:56 AM
renew ip address distantlyyours Slackware 2 02-08-2004 01:08 PM
renew ip address distantlyyours Slackware 4 02-08-2004 12:54 PM
host vs dig jpbarto Linux - Networking 2 08-06-2003 10:17 AM


All times are GMT -5. The time now is 03:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration