LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to add new hosts to dns (https://www.linuxquestions.org/questions/linux-server-73/how-to-add-new-hosts-to-dns-521775/)

yyazici 01-22-2007 01:36 PM

how to add new hosts to dns
 
i want to built a small domain with 3-4 computers.. one of them dns server and others are clients.. i have set up dns.. but when i ping computer1.mydomain i can't get good answer..:confused:

JimBass 01-22-2007 07:39 PM

Well, BIND is the linux DNS server. You would need to create a zonefile for your domain, and have BIND give answers from that. Setting up BIND for such a small domain seems like a big job for little reward. I would not bother in a setting with only 4 computers, but the choice is yours.

For something that small, I would configure the router to give every machine the same address all the time, and edit the hosts file (windows has this file too) to include the addresses of the local machines. Will take you 5 minutes. Setting up a BIND server is not very difficult, but would be a much more complex job.

Peace,
JimBass

yyazici 01-23-2007 06:48 AM

Thanks JimBass
You are right. i am aware of not being need to a dns server for a small lan for 3-4 computers but after that i will try bigger one.. i want to have a real domain.. Beside that i think that dns server has a small database which keeps host names for known IPs, hasnīt it? i want to access this table or db.. and add new host names for some IP s..



Quote:

Originally Posted by JimBass
Well, BIND is the linux DNS server. You would need to create a zonefile for your domain, and have BIND give answers from that. Setting up BIND for such a small domain seems like a big job for little reward. I would not bother in a setting with only 4 computers, but the choice is yours.

For something that small, I would configure the router to give every machine the same address all the time, and edit the hosts file (windows has this file too) to include the addresses of the local machines. Will take you 5 minutes. Setting up a BIND server is not very difficult, but would be a much more complex job.

Peace,
JimBass


JimBass 01-23-2007 10:09 AM

Usually BIND runs on plain text files, but it can run on databases if the need is there. Many people install BIND and call the file that contains their domain info something like db.domain.com, but it isn't actually a database in the sense of MySQL, Postgrep or things of that nature. It can be however.

Peace,
JimBass

xjlittle 01-24-2007 06:20 PM

Here you go this should help you get started: http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch01.html

After you look over that maybe you could give your domain a try and ask some more specific questions.

yyazici 01-25-2007 05:26 AM

Thanks to all
i have solved my problem using webmin..
A useful and simple administration inteface for linux..

Yusuf

kaixa 01-25-2007 08:35 AM

Well, if it's a (very) small domain, it's easier if you just using /etc/hosts.


All times are GMT -5. The time now is 02:31 PM.