OpenWrt Forum Archive

Topic: DNS or something else

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have an Asus wl-500gP and running Kamikaze trunk version (2.6) on it. My Asus gets an IP from my DSL router through the wanport. And sometimes the ip changes. So If I want to connect to my Asus I have to type a IP adresse like "192.168.1.178" now I don't want to check every time what IP adress my Asus gets. I want that I can reach my Asus with a name like "my.asus". How can I do that and what config file do I have to change?

(Last edited by Oconnor on 22 May 2008, 22:13)

You could just assign a static IP to your OpenWrt router's WAN interface, and then use your local /etc/hosts (%SystemRoot%\system32\drivers\etc\hosts for Windows).

Or you could use a dynamic DNS provider-

http://wiki.openwrt.org/DDNSHowTo

Hope this helps,
Charlie

Static IP isn't my solution. DNS provider wont work in a lokal lan. Is there no other solution? My Fritzbox is also connectable via "fritz.box". Is there no package I can install like DNS or somethink else?

I think you need to better describe your situation.  I'll give a guess as to what you mean, and the solution that I use.

The asus gets an outside (WAN) IP that may change at any given moment.  You want to be able from the internet to contact your router via a name rather than keep tabs on the IP it's getting.  This is a job for dynamic DNS, there's a bazillion services, I use www.dyndns.org

If somehow (and this is where I'm confused about what you wrote) you're getting a non-routable WAN address (192.168.... and others) then you are up the creek because you just can't get to that IP from the internet.

alaric wrote:

I think you need to better describe your situation.  I'll give a guess as to what you mean, and the solution that I use.

The asus gets an outside (WAN) IP that may change at any given moment.  You want to be able from the internet to contact your router via a name rather than keep tabs on the IP it's getting.  This is a job for dynamic DNS, there's a bazillion services, I use www.dyndns.org

If somehow (and this is where I'm confused about what you wrote) you're getting a non-routable WAN address (192.168.... and others) then you are up the creek because you just can't get to that IP from the internet.

No that's not that I mean.

I have a DSL Router call it "ONE" that one is connected to the internet. But that doesn't matter. The router ONE has a DHCP Server for LAN (192.168.1.1). And I have an Asus Router call it "TWO" running openwrt. The router TWO gets an IP adresse from router ONE (192.168.1.135 this one changes some times).

It looks like that:

Internet
   |
WAN
Router ONE
Lan
  |
  |
WAN
Router TWO

So I dont know what IP Adresse Router TWO gets from router ONE sometimes it is 192.168.1.135, some times it is 192.168.1.172 and so on. I want that the router gets a name and I can connect to it via name like "my.asus" or something like that. I know I could give the asus a static IP adresse but that is not what I want.
Do you know that I mean now?

You have full control wether DHCP is used on Router ONE, If you only have your asus hooked to it, turn off DHCP, then use a static IP address on yoru Asus, then you can use /etc/hosts to define a name for your asus router.

No I have about 20 PC's connected to router ONE. I can reach all of them via a name and not via a IP adresse. So is it not possible to give a router who is running openwrt a name?

The way I see is to update /etc/host with the wan IP Adresse, each time it is getting a new IP adresse. Is there a script that is doing that or is there an other way?

(Last edited by Oconnor on 26 May 2008, 09:44)

is it using WINS to provide name resolution? How do you assign the names?

I did not assign a name, all PC's are running Linux or Windows and I can reach the PC's by typing there "login name" . Like one PC has login name is "Torsten". I can do "ping Torsten". And my PC pings the IP adresse of "Torsten".

(Last edited by Oconnor on 26 May 2008, 09:49)

The discussion might have continued from here.