Portal Home > Knowledgebase > Articles Database > Nameservers setup SUSE Linux
Nameservers setup SUSE Linux
Posted by rando, 08-22-2007, 10:26 AM |
How to setup nameservers in SUSE Linux when my server is behind router?
I'd need to setup two nameservers so I could register domains.
NAT IP is the ip shown at whatismyip.com? or is it ip my router gives out eg 192.168.4.103?
|
Posted by valentin_nils, 08-22-2007, 10:42 AM |
If you want to use Nat than you will have to set a private IP at your server and let NAT "translate" the global IP to a local IP within your router. You will also need to open the ports 53 for the required protocols f.e UDP.
Best regards
|
Posted by Azzo, 08-22-2007, 10:55 AM |
You connect to your ISP via the router it will take an external IP for example 87.12.2.126 and is shown at whatismyip.com
The NAT is program that give your computer and another PC's in the network local IP's for example 10.0.0.1 the first PC.
when you sending a packet it's looking for a way or nameserver in the file /etc/resolv.conf
in this file you should store your EXTERNAL ROUTER IP for example 10.0.0.138, after that your packet go to ISP servers to get it way in the internet.
You can edit the file /etc/resolv.conf manualy, or you can edit it by your control YAST with suse.
|
Posted by rando, 08-22-2007, 11:34 AM |
I opened /etc/resolv.conf manually I only got router dns1 and dns2 wrote up in there. How to store external router ip in there?
can my external ip be 192.168.4.103 ?
|
Posted by Azzo, 08-22-2007, 12:07 PM |
NO you don't need to store the external here. And this 192.168.4.103 is local
What you want to do exactly ?
|
Posted by Azzo, 08-22-2007, 11:27 PM |
I was mean INTERNAL here my English so bad.
|
Posted by rando, 08-23-2007, 09:26 AM |
I wanted to register domain at godaddy but it didn't let me with my dns1 and dns2.
I figured that I have dynamic ip that's the reason.
also tried to install cpanel which didn't work - no changes at all after it's installed and can't connect via port 2082
|
Posted by rando, 08-23-2007, 09:31 AM |
I have dynamic ip and router - may that be the reason why cpanel isn't working?
and also as reason for not allowing me to register .com domain?
|
Posted by Azzo, 08-23-2007, 11:24 AM |
You need to install named service on your system and make a two or ten nameserver (DNS's) as you like or need via (named) service, Google its packages is ( bind & caching-nameserver)
You can do this via CPanel or via your shell prompt #
After that from goddady you will restore your dns and IP to linking your domain with your server.
Until now we doesn't need NAT service, Whether you connect from router or without it. All the above essential for what you want,
You have to know what is NAT and when I need it.
NAT is Network Address Translate, it is came with the router usually. to give all PC's local IP connected to the router. And the router is which dealing with external in general.
If you give anyone your external IP which is router's IP. You have to open port 80 via NAT with your local IP (PC local) there is options to link the port with your INTERNAL PC IP. To receive all connections from this port. Check your router control panel and NAT options.
I don't have more with CPanel but I think it is should be setup like any service or program.
There are two solutions to do that.
1) You need static IP to keep the domain connected with your server ( call your ISP ).
2) If you have dynamic IP. There is feature you can get it from your registrar.
In this case you have to install/write small script starts with your machine to update the domain on goddady directly. I Think you need to store the user&pass in this script too.
All this info I faced in the net. I wish to give you some links but my favorite is not with me now.
|
Add to Favourites Print this Article
Also Read