LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Gentoo nameserver creation help =\ (https://www.linuxquestions.org/questions/linux-networking-3/gentoo-nameserver-creation-help-%3D%5C-249021/)

BoaR 10-30-2004 03:31 AM

Gentoo nameserver creation help =\
 
After 8 hours of trying and using every search engine on the web, I finally am giving up and asking for help.

You guy's are the masters so I am sure this will be answered quickly. ;)


Not a home server - but an unmanaged webserver (dedicated box). My other admin just finished installing gentoo (kernel 2.9) on the box. To make it easier for us, webmin is installed on the box.

I have 15 ip's to play with (in addition to the actual server ip) Here is what I would like to do.

map 4 of the extra ip's to each their nameservers so like ns1, ns2,ns3,ns4 then have all my domains that will be hosted (3 currently that will be using each their own extra ip's) pointing to use the server's 4 nameservers that will be created.

I know the last step is mapping the ip's on the domain registar to make them active. (already know how to do this.)

It's the damn server side usage that has stumped me. :(


Can anyone give me some very simple instructions on how to accomplish this feat? How to go about it, commands, best way, etc. (Please keep in mind that I have a lot of trouble with linux and gentoo is way beyond my skills.)

Thank you very much for all your help :)

Mara 10-30-2004 11:38 AM

You mean you'd like to have 4 IPs on one server? You can configure them using a command like
ifconfig eth0:1 xxx.xxx.xxx.xxx
where eth0 is the interface (external). :1 means it's extra IP. You can also use eth0:2, eth0:3 etc. xxx.xxx.xxx.xxx is one of the IPs.

BoaR 10-30-2004 04:46 PM

Hmm ok so that would solve one problem. and your correct. I'll be mapping all 15 of the extra ip's like this.

Now the next part would be how do I go about setting 4 of those ip's to act as nameservers for all my domains ?

Essentially I would like every domain on the box to answer to those 4 freshly created ns1,ns2 etc...

Mara 10-31-2004 10:03 AM

I'm not sure if BIND will be able to do it with only one instance. I think you'd need to make small port forwarding depending on the IP connected to the right instance of BIND (in your case 4 instances).

scowles 10-31-2004 11:54 AM

Quote:

Originally posted by BoaR
Hmm ok so that would solve one problem. and your correct. I'll be mapping all 15 of the extra ip's like this.

Now the next part would be how do I go about setting 4 of those ip's to act as nameservers for all my domains ?

Essentially I would like every domain on the box to answer to those 4 freshly created ns1,ns2 etc...

By defualt, named will bind to all interfaces (including aliases). If needed you can add the "listen-on" statement to named.conf to specify a subset of ip addresses.


All times are GMT -5. The time now is 02:11 AM.