Koozali.org: home of the SME Server

howto sme dns lookup the dyndns name -> adress ?

mig

howto sme dns lookup the dyndns name -> adress ?
« on: December 13, 2004, 02:38:20 PM »
Hi everyone...

I searched the forums and couldnt find an answer

have an account on DynDNS.org... how can I setup my SME 6.0.1-1 DNS to automatically shows the dynamic ip of the external ppp0 interface ?

The SME DNS shows only the adress of the interal eth0 interface.

Need the dynamic ip adress for an .conf file ...

Best rgds
michael

mbachmann

howto sme dns lookup the dyndns name -> adress ?
« Reply #1 on: December 13, 2004, 04:37:21 PM »
Look at server-manager - Review configuration - External IP address / subnet mask. There it is.

Open a console and type "ifconfig". The ppp0 inface will show an entry "inet addr" - that's it.

If you have registerd to dyndns it will in most cases show your inet adresse, when you access you account.

To show dyndns status type in "/sbin/e-smith/config show DynDNS". To enable dyndns rerun configuration.

For multiple dynamic dns client on SME: http://forums.contribs.org/index.php?topic=25164.0

mig

howto sme dns lookup the dyndns name -> adress ?
« Reply #2 on: December 13, 2004, 05:52:25 PM »
thx - but this does not solve my problem, in my config file located on the sme box i need to specify the dns name of my dyndns.org dns record. from outside (internet) this name points to my external ip (ppp0). but if i lookup my dyndns.org dns name from the command shell of my sme box it points to the internal net interface eth0.

even when i set up a second dyndns account using this topic:

Quote

For multiple dynamic dns client on SME: http://forums.contribs.org/index.php?topic=25164.0


the localy resolved dns name is still pointing to my local eth0 interface.

any ideas how to solve this ?

mbachmann

howto sme dns lookup the dyndns name -> adress ?
« Reply #3 on: December 14, 2004, 10:39:33 AM »
Please paste the output of "route" and explain what's in Hostname and Adresses panel.

mig

howto sme dns lookup the dyndns name -> adress ?
« Reply #4 on: December 14, 2004, 11:28:42 AM »
okay here it comes:

# nslookup myDynDNSdom.homeip.net

Code: [Select]

Server:         192.168.150.10
Address:        192.168.150.10#53

Non-authoritative answer:
Name:   myDynDNSdom.homeip.net
Address: 192.168.150.10


this should point to the external interface ip, in this case 80.139.68.217.

# route
Code: [Select]

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
217.5.98.154    *               255.255.255.255 UH    0      0        0 ppp0
192.168.150.0   *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         217.5.98.154    0.0.0.0         UG    0      0        0 ppp0



# ifconfig
Code: [Select]

eth0      Link encap:Ethernet  HWaddr 00:D0:B7:16:8A:B9
          inet addr:192.168.150.10  Bcast:192.168.150.255  Mask:255.255.255.0
          EtherTalk Phase 2 addr:65280/67
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:142975 errors:0 dropped:0 overruns:0 frame:0
          TX packets:167210 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:23749101 (22.6 Mb)  TX bytes:124615532 (118.8 Mb)

eth1      Link encap:Ethernet  HWaddr 00:90:27:A7:3C:8B
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:170793 errors:0 dropped:0 overruns:0 frame:0
          TX packets:129394 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:115144969 (109.8 Mb)  TX bytes:19629679 (18.7 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          EtherTalk Phase 2 addr:0/0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:17926 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:2073846 (1.9 Mb)  TX bytes:2073846 (1.9 Mb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:80.139.68.217  P-t-P:217.5.98.154  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:13964 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10069 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:10362085 (9.8 Mb)  TX bytes:831111 (811.6 Kb)


in the hostname panel i have entries for:

ftp.myDynDNSdom.homeip.net
mail.myDynDNSdom.homeip.net
proxy.myDynDNSdom.homeip.net
sme.myDynDNSdom.homeip.net <- this is the hostname
wpad.myDynDNSdom.homeip.net
www.myDynDNSdom.homeip.net


all above have visibility local and location self - nothing else.

in the domain panel i have set the domain to myDynDNSdom.homeip.net as Primary domain and primary site.

regards
michael

mbachmann

howto sme dns lookup the dyndns name -> adress ?
« Reply #5 on: December 15, 2004, 10:18:06 AM »
After reading it back and forth I really don't recognize a problem. Remember that you issue the commands from your server in the internal lan (i suppose). What results do you get on a machine outside?

mig

howto sme dns lookup the dyndns name -> adress ?
« Reply #6 on: December 15, 2004, 05:14:45 PM »
... found a solution by myself:

I installed the ddclient and configured a second dyndns domain name not using the control panel. I modified the template file, which now automaticly adds a second entry in dyndns.org staticly. the local dns server have no entry for this record and therefore it is asking the root dns servers from the internet. they resolve the dyndns.org record which points to my external dynamic ip.


thanks & regards from krautland ;-)

mbachmann

howto sme dns lookup the dyndns name -> adress ?
« Reply #7 on: December 16, 2004, 09:01:48 AM »
Verry good. What do you mean by ... configured a second dyndns domain name not using the control panel. The control panel of the ddclient?

Which template file have you modified and what did you add?

Have you checked "configure your server" from the admin-console? From there you can also set up dyndns. As i understand you, this has not worked?