Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: mig 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
-
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
-
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:
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 ?
-
Please paste the output of "route" and explain what's in Hostname and Adresses panel.
-
okay here it comes:
# nslookup myDynDNSdom.homeip.net
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
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
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
-
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?
-
... 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 ;-)
-
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?